• 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

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,

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!