• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling HBM query in HBM file

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.. so I'm new to hibernate. Not quite sure how to call the query on the bottom of this hbm file. Can someone give me an example of how this would be done.

Thanks




 
Bridget Kennedy
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try looking at this reference:

http://docs.jboss.org/ejb3/Hibernate3/reference/en/html_single/#objectstate-transitive

Search for "getNamedQuery". There are several detailed examples of using substitution text and retrieving results.

Good luck.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic