This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hard Hibernate relation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hard Hibernate relation" Watch "Hard Hibernate relation" New topic

Hard Hibernate relation

bash bashtoko

Joined: Jan 20, 2011
Posts: 14
Please help ..

We have a table called "Users" one of the columns is called "User_type"

and another table called group members...

there is a complex relation ... can you please see attached image and help me with this ...

sorry but I had to draw it because its hard to explain....

Many thanks in advance

how this can be described in Hibernate annotations ...

Please help....

[Thumbnail for users.JPG]

bash bashtoko

Joined: Jan 20, 2011
Posts: 14

any one please ??
I agree. Here's the link:
subject: Hard Hibernate relation
Similar Threads
org.hibernate.AnnotationException: No identifier specified for entity
Mapping Inheritance with Hibernate & Table Per Subclass
Locking a table
manay-to-many vs bi-directional relationships