• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Join table with DetachedCriteria

 
zabet tyan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic