Register / Login
Object Relational Mapping
JPA 2.0 - eclipse link composite primary key problem..
posted 6 years ago
I have two entities(actually more but it doenst matter)
Exam and Exam_Normals
Its a oneToMany relationship... The problem is that i need a primary key for Exams_Normals PK (Exam_ID Item)
be 1 2 3 4 5 etc....
I cound use an IDENTITY and a
relationship at Exam_Normals but that should be like PK(Exam_Normals_ID) and a reference to Exam and an extra collumn
Item to keep an order.. SO 3 collumns
I tried with @IdClass and got errors
Tried @EmbeddedID everything nothing works
EJB Question. Add a new column to Many-to-many relation generated table.
Concatenated Primary Key For CMP With CMR
One to many insert with iBatis
Hibernalte HSQL returning the only the first row
Foreign key to primary key one-to-one join