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 Murach's Java Servlets and JSP this week in the Servlets 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??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic SQL in hibernate
 
Similar Threads
mapping question (hashmap and subclasses)
Hibernate throwing SAXPasesExceptions
Hibernate equivalent of MetaData
hbm.xml file does an update instead of an insert- Helppppp
Could not determine type for: java.util.Set