-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate 4.0 multi-tenancy
PostPosted: Wed Jun 15, 2011 4:23 pm 
Newbie

Joined: Wed Jun 15, 2011 4:09 pm
Posts: 2
I'm not sure if this is a question for here or for Spring but since this functionality is in beta I'm asking here.

I'm setting up a web application that is currently running on Hibernate 3.5.5 and I'm looking to upgrade to incorporate the new multi-tenancy functionality in 4.0. I've managed to get my project updated to run the 4.0 beta1 but I'm having trouble trying to figure out how to use the multi-tenancy options. In the MultiTenancySchemaTest Hibernate sets the tenant on a session then opens the transaction and preforms it's tasks. The problem I'm running into is with the application setup on Spring it's already got a EntityManager and a TransactionManager.

Is there a way to setup the session prior to the other managers or should I be setting the tenant in a different way?


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

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.