File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Many to one relationshilp table have same entity name returns wrong value 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 "Many to one relationshilp table have same entity name returns wrong value" Watch "Many to one relationshilp table have same entity name returns wrong value" New topic
Author

Many to one relationshilp table have same entity name returns wrong value

sampath soft
Greenhorn

Joined: Apr 13, 2007
Posts: 17
Hi,

I have Two Table FOLDER and TOPIC. Their hbm as follows...


I have enabled second level ehcache for both table.


when i call instand of hibernate returning parentId of TOPIC, it returns the parentId of FOLDER. Some time it returns correct value some time not.

Can you help me to fix and explain this

Thanks in advance
 
jQuery in Action, 2nd edition
 
subject: Many to one relationshilp table have same entity name returns wrong value
 
Similar Threads
Hibernate: Problem with View returning list of nulls
Hibernate generate select while storing object.
hibernate get parent based on children
Classcast exception