This question is based on Hibernate 2 the latest as of this posting. I did a great deal of reading on hibernate before posting this to make sure I couldn't get a clear answer from somewhere else before resorting to "bugging" the forum for a better answer.
The Problem:
I am developing an applicaiton which has need of getting data in as agnostic a database fashion as possible, however the query that will give me the data that I want is complex and requires a feature that I know is not in Hibernate now from reading the available docs. The query in question is a UNION ALL of disperate data sets. I have experience with ORM (ala OJB) but no experience with Hibernate per se.
The Question:
Knowing the above problem - is there a direct benefit to using hibernate's framework and structure despite the fact that I have to issue my own query to get the data that I want? i.e. In the situation where I have to issue my own query for data, is there a benefit to using Hibernate over say just writing a java object to execute a query and return the result set? Take into account there would be frame work around jdbc connections and pooling etc.
Thoughts? Help? Comments? I will take ANY and ALL input I can get, because this project has a VERY SHOOOOOOORRRRTTTTT development period (April 1 deadline) and I am only coming into the project now. A decision HAS to be made.
Thanks,
Joe Campbell
joe.campbell@guideworkstv.com