Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic SQL in hibernate  RSS feed

 
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??
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!