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

Calling HBM query in HBM file  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!