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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Many to one relationshilp table have same entity name returns wrong value
 
Similar Threads
Hibernate generate select while storing object.
Classcast exception
hibernate get parent based on children
Hibernate: Problem with View returning list of nulls