Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic SQL in hibernate

 
Narendra Nathmal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to build dynamic sql using hibernate. I know you can selectively query the columns definded in the .hbm files. But what if the column name is known only at runtime. In other words is something like this possible

<property name="somecol" column="?" />

The ? is the column name i am interested in??

Any ideas??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic