-->
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: Dynamic catalog replacement not happening while insertions.
PostPosted: Fri Jul 18, 2014 1:52 pm 
Newbie

Joined: Fri Jul 18, 2014 1:38 pm
Posts: 2
Hi,
I am using two data sources for an application . For example X,Y
Y database tables has some foreign key relations to X tables.

Later for some purpose i changed my X database name to Z.
I didn't change any foreign key referenced table names in Y. In order to get data while passing queries to X(present Z) i use interceptor to replace the catalog name from X to Z on every onPrepareStatement() which is available in EmptyInterceptor.

I am getting the data from table and working well.

But issues coming while insertions into database Y . While i am inserting into a table in Y which has foreign key relations with X(present Z) , it is not allowing me to insert records.


Please help in resolving this issue.


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.