I have this table:
The QuestionTest class only has the mapping:
@ManyToOne
private Question question;
@ManyToOne
private Test test;
I know that the problem can be solved creating an id field, but I don't want to do it. I want the primary key to be the composite key.
Is it possible? How can I do this?
The QuestionTest class only has the mapping:
@ManyToOne
private Question question;
@ManyToOne
private Test test;
I know that the problem can be solved creating an id field, but I don't want to do it. I want the primary key to be the composite key.
Is it possible? How can I do this?