File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Dynamic SQL in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Dynamic SQL in hibernate" Watch "Dynamic SQL in hibernate" New topic
Author

Dynamic SQL in hibernate

Narendra Nathmal
Greenhorn

Joined: Aug 04, 2004
Posts: 5
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??
 
wood burning stoves
 
subject: Dynamic SQL in hibernate
 
It's not a secret anymore!