This is the code i used to make it
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
int id;
@Column(name = "question", nullable = false, length = 999, unique = true)
String question;
@Column(name = "awnser", nullable = false, length = 999, unique = true)
String awnser;
@Column(name = "test", length = 999, unique = true)
String test;