Register / Login
Win a copy of
Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
JPA 2.0 - eclipse link composite primary key problem..
posted 7 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)
Item should be 1 2 3 4 5 etc....
I cound use an IDENTITY and a ManyToOne 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
Boost this thread!
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