-->
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: seems strange but really i need this:-
PostPosted: Thu Jul 19, 2007 7:55 am 
Newbie

Joined: Thu Jun 14, 2007 5:41 am
Posts: 3
Hi All

am searching for something that seems strange but i really need this.

our enviroment is maven, andromda, spring, hibernate, DB engine & dbunit for testing. we are working now using mysql but we want migrate to postgres. the point is that the connection url we used with mysql is:-
jdbc:mysql://localhost:3306/testDB?sessionVariables=FOREIGN_KEY_CHECKS=0

but i found nothing similar to this(FOREIGN_KEY_CHECKS) with postgres i searched & found that i have to drop the sql refrential checks first in order to behave the same. the problem is that the DB is automatically recreated about 10 times everyday (with each single build) so it is so hard to drop the refrential constraints manually each time specially with a huge number of tabels & relations.

we need this issue for testing purpose. so i was wondering if hibernate has a solution for this problem or not.?? something like generating the foreign key columns but not to make the constraints !!!!


thnx for any reply,,,

_________________
best regards,,,

Mohamed Badawy


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.