File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Dynamic SQL in hibernate" Watch "Dynamic SQL in hibernate" New topic

Dynamic SQL in hibernate

Narendra Nathmal

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??
I agree. Here's the link:
subject: Dynamic SQL in hibernate
It's not a secret anymore!