-->
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: replicating Hibernate in PostgreSQL
PostPosted: Thu Dec 18, 2003 10:03 pm 
Newbie

Joined: Thu Dec 18, 2003 9:50 pm
Posts: 1
I'm replicating a postgreSQL 7.3.2 database using erserver 1.2 that contains Hibernate 2.1 and am having constraint issues.

It seems that erserver does not apply the changes to the standby database in the same order that they are done to the online, so we were getting constraint violations. I fixed it by dropping the Hibernate constraints on the standby database server and re-applying them when it becomes the online. That seems to work just fine.

But I'm wondering if there is a better way. Can Hibernate be configured to create its constraints with the 'DEFERRABLE" property, which would ask postgres to hold off applying constraints until the end of the current transaction? That may allow me to not have to monkey around with the constraints as I have been.

_________________
Dave


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.