Register / Login
Win a copy of
Java Mock Exams (software)
this week in the
Programmer Certification (OCPJP)
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
hibernate - composite id joining 2 others table
posted 7 years ago
I really need help about an exotic join between 3 tables.
I really don't know how to declare it with hibernate
composite-id : x,y
id : x
property : y
in SQL : join A on B.x = A.x and B.y = C.y
But how to declare it with hibernate ?
Tanks a lot for your help
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
Mapping same POJO to two tables in Hibernate XML mapping files
Hibernate many to one composite primary key consisting foreign key
many-to-one relationship to non-PK field
Hibernate composite id mapping through HQL