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 One java class & Two tables Hibernate 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 "One java class & Two tables Hibernate" Watch "One java class & Two tables Hibernate" New topic
Author

One java class & Two tables Hibernate

vibhu garg
Greenhorn

Joined: Dec 28, 2005
Posts: 4
Is it possible in Hibernate to Map one Java to Two different tables in Database?
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518
The Hibernate reference manual describes how to map a single java class to two different tables by using the entity name property to differentiate between the two entities.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: One java class & Two tables Hibernate
 
Similar Threads
Confused...
Hibernate One to One Unidirectional
tools of the hibernator
Mapping two tables to one persistent class in hibernate
Hibernate Join(ORM)