-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: User-created SessionFactory for HibernateTools.
PostPosted: Fri Jan 27, 2006 8:58 pm 
Newbie

Joined: Fri Jun 25, 2004 5:50 pm
Posts: 3
Hi,

We have a large (>500 tables) software system for which we formerly used Hibern8IDE to try out HQL with Hibernate 2.1. As we do a lot of runtime byte-code stuff to create our business classes, we dynamically build the hibernate configuration at runtime, before starting the Hibernate session factory. We overrode a little bit of the Hibern8IDE code to let us supply our own SessionFactory to accomplish this.

Now we've switched to Hibernate 3 and Hibern8IDE won't work, so we want to use HibernateTools. Unfortunately I don't see any way to slide in our own SessionFactory, so I'm stuck with having to generate a "light-POJO" version of our system so that the static definitions needed by the HibernateTools configuration screens can be provided. This is obviously not optimal, since the classes used in HibernateTools would not be the actual classes that run in the system.

Is there a way to let us provide our own SessionFactory to HibernateTools, or can such a change be made in the tools?

Thank you.

--
Felix Hack


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 28, 2006 4:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hi felix,

Its one of the things i would really like to do but haven't got around to yet.

There are two strategies for doing this:

1) create a standalone RCP app that you can bootstrap from inside your app like Hibern8IDE....

2) let the current plugins work based on a session factory selected in a debug variable in eclipse and execute the code "remotely"


#2 is the one that is most likely to happen since #1 requires some pretty heavy configuration changes.

Just to give a hint on what is coming - i just don't know when yet ;)
(contributions welcome ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.