ternary « Relationship « JPA Q&A





1. Ternary (and n-ary) relationships in Hibernate    stackoverflow.com

Q 1) How can we model a ternary relationship using Hibernate? For example, how can we model the ternary relationship presented here using Hibernate (or JPA)? NOTE: I know that ...

2. ternary relationship    forum.hibernate.org

I've the following problem. I've three tables (name it A, B and C) each one with an unique identifier (ID column) and a ternary relationship table (name it ABC) with three fields ID_A, ID_B and ID_C. I want to access this relationship through the objects mapped on the A table like the access of a map. Let suppose that the content ...

3. Ternary relationship HQL question    forum.hibernate.org

I have 4 tables A, B, C, and D. D contains PK values of A, B, and C. D does not have its own PK. My POJO's are: A, B, C, and BC. BC is a composite element of B and C. A contains a bag of BC's. I need to find a list of BC's that belongs to a particular ...