-->
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.  [ 4 posts ] 
Author Message
 Post subject: Multy Tenancy with MultiTenancyStrategy.SCHEMA
PostPosted: Thu Oct 06, 2011 5:58 pm 
Newbie

Joined: Thu Oct 06, 2011 5:54 pm
Posts: 6
hello guys,
how can i make a session factory with support to multi tenancy, using MultiTenancyStrategy.SCHEMA ?

I tried:

Code:
Configuration cfg = new Configuration();

         cfg.getProperties().put(Environment.MULTI_TENANT,
               MultiTenancyStrategy.SCHEMA);

         cfg.addAnnotatedClass(Produto.class);

         factory = (SessionFactoryImpl) cfg
               .buildSessionFactory();


but this is wrong

tnk everybody


Top
 Profile  
 
 Post subject: Re: Multy Tenancy with MultiTenancyStrategy.SCHEMA
PostPosted: Fri Oct 07, 2011 2:17 pm 
Newbie

Joined: Thu Oct 06, 2011 5:54 pm
Posts: 6
up


Top
 Profile  
 
 Post subject: Re: Multy Tenancy with MultiTenancyStrategy.SCHEMA
PostPosted: Tue Oct 11, 2011 2:47 pm 
Newbie

Joined: Thu Oct 06, 2011 5:54 pm
Posts: 6
please, help me

tnks


Top
 Profile  
 
 Post subject: Re: Multy Tenancy with MultiTenancyStrategy.SCHEMA
PostPosted: Fri Oct 28, 2011 1:06 pm 
Newbie

Joined: Thu Oct 06, 2011 5:54 pm
Posts: 6
someone?


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