Guys,
I'm working on a fat desktop application that uses Hibernate 2, but I've been forced to use Hibernate 3 in some cases to be able to take advantage of the new Projection features, particularly with Criteria queries.
App startup time is very important, and I've been examining
http://www.hibernate.org/194.html and trying to figure out how I can use that with 2.1, because app startup is currently very slow when parsing the configuration.
Now, after adding Hibernate 3, it's even slower. Hibernate 3 seems to take almost twice as long as 2 to load, and between the two, it's
extremely long.
What I'd like to do is be able to use the same Configuration or Session object for both Hibernate 2 and 3. That way, at least I only have to load a Configuration once, rather than twice.
Anyway to do this? I'm sure this is quite impossible, but thought it worth a shot to ask.
Any other suggestions?
Thanks!
jbwiv