gavin wrote:
Use a Criteria query.
Thanks gavin.
Criteria query seems to be a good option... My only hesitation is now I'd have to write java code to form SQL queries. I can try to write a generic program which will parse thro XML and then form Criteria query accordingly.
It would be really cool if hibernate can provide a way to embedd criteria query in XML or HQL format. This will avoid plenty of coding + all sql queries can be maintained in a seperate repository.
Well, thanks again, gavin.
~ Nilesh