-->
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: Duplicate Mapping exception in hibernate
PostPosted: Mon Apr 13, 2015 11:15 am 
Newbie

Joined: Mon Apr 13, 2015 11:02 am
Posts: 1
We are trying to create two different entity objects in hibernate for two tables with same name, but different structure, schema and different primary keys. While spring getting initialized, we are getting duplicate mapping exception. This application is based on multiple tenant, and each tenant will have the same table name and same primary keys. With this respect to this specific scenario, we have two tables with same name but different structure and different primary key.Can you please suggest whether we need to rename the table or any other approach in hibernate to handle this scenario,please?

Thanks


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.