-->
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: Implementing multi-tenancy in MultipleHiLoPerTableGenerator
PostPosted: Sat May 04, 2013 3:15 pm 
Newbie

Joined: Sat May 04, 2013 3:01 pm
Posts: 2
Hi,

I'm trying to create a multi-tenant application with shared schema.We have identified a discriminator field which will help to filter out data base on customers.

I'm facing a problem in TableGenerator strategy for generating primary keys for some of the entities.

As per logic we will have 2 columns for seq_name and another(seq_count) for tracking the count.

But since its multitenant application i need to keep them separate for each customer. So multiple customers will have seq_name & seq_count columns which would belong to them respectively.

I was thinking that i might have to write some custom logic for TableGenerator with a attribute for discriminator column, but before that i need some advice that is their any other way to do this?


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.