Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Join table with DetachedCriteria  RSS feed

 
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,

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!