-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate Tools: use custom sessionfactory class?
PostPosted: Wed Nov 04, 2009 5:12 pm 
Newbie

Joined: Thu Sep 15, 2005 10:04 am
Posts: 14
Hi!
I have a question is it somehow possible to use my own custom SessionFactory class for the Hibernate Configurations in the Hibernate Configuration view (as for namingstrategy and entityresolver)? I couldn't find it and searching the forum did not help.

I hope it is a hidden feature somewhere :-).

Thanks!

gr. Martin


Top
 Profile  
 
 Post subject: Re: Hibernate Tools: use custom sessionfactory class?
PostPosted: Tue Nov 17, 2009 10:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what do you need beyond setting namingstrategy and entityresolver on the configuration console ui ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Hibernate Tools: use custom sessionfactory class?
PostPosted: Tue Nov 17, 2009 11:09 am 
Newbie

Joined: Thu Sep 15, 2005 10:04 am
Posts: 14
Hi Max, vyemialyanchyk,
Thanks for your reply.

For most applications I write, I generate the mapping in memory based on a model stored in the database. For your info, I am responsible for the Teneo project at eclipse.org: http://www.eclipse.org/modeling/emf/?project=teneo, there the mapping is generated on the basis of the model definition in ecore.
In this case there is no hbm file or a jpa mapping (orm or annotations) directly and sometimes there are not even entity java classes (in this case I use the dynamic mapping capabilities of hibernate).

For integration with many frameworks (spring or Seam) this works fine as it is possible to specify a custom SessionFactory/EntityManagerFactory implementation.

So therefore my question if it is possible to specify a SessionFactory implementation class because it opens the possibility to integrate all these generation/dynamic environments also with hibernate tools (I hope...).

So that's the background of my question.

gr. Martin


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.