Thanks for your reply. If anyone has a requirement to do complex native SQL queries, I think it is best then to use the approach you mentioned. Unfortunately, I have already taken an entirely different approach and followed
http://www.ibm.com/developerworks/java/ ... icdao.html .
This is approach is really generic and was working wonderfully for me up until the time that my queries became complex. I made all queries external prefixed by "FindBy", and my DAOS are sparse. Looks like I need my traditional DAO back, and a not so generic way of accessing it.
Please note that I spent 2 days researching documentation, googling, and trying different things to get the externalized query in XML form <sql-query> <return class="someClass" alias="someAlias"> to work, and kept getting "column not found". For benefit of all, if anyone has a working example of how to reference native SQL embedded in XML file commandQuery.hbm.xml using H 3.3, please post. My domain class does not even have a property called "rowNum" in it, nor should it. Moving on :)