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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Many to one relationshilp table have same entity name returns wrong value