-->
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: foreygn keys: no conection to the table and can't be null
PostPosted: Thu Mar 13, 2008 8:38 am 
Newbie

Joined: Mon Feb 11, 2008 4:29 pm
Posts: 6
We are working on an old database that is not normalized and relational so we have some problems trying to start it work with Hibernate. We can not make any changes to the configuration of the database.

We have some foreign keys in a table that can not be null and they don't have connection to the table that is related to it. Using Hibernate, we'd run into errors because Hibernate wouldn't be able to find a corresponding entry on the foreign table with that default key and would throw an exception.

I think(hope) there is a configuration option for Hibernate that allows it to ignore this situation, so if you know it please help me!


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.