Two Laptop Bag
The moose likes Object Relational Mapping and the fly likes Join table with DetachedCriteria Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Join table with DetachedCriteria" Watch "Join table with DetachedCriteria" New topic
Author

Join table with DetachedCriteria

zabet tyan
Ranch Hand

Joined: Jan 14, 2009
Posts: 32
Hi

I am using detachedCriteria to retrieve something from db.

I have notification hbm as follows:



Person is not mapped directly to notification. it has the id only.

the person has a displayName field that I want to get and return as part of my Projection.

However I am not sure how to join the tables using DetachedCriteria to get the field.


Please note I cannot change the database model or hbm files.


Any help would be greatly appriciated,

 
 
subject: Join table with DetachedCriteria
 
developer file tools