-->
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.  [ 3 posts ] 
Author Message
 Post subject: UnresolvableObjectException and inconsistent data
PostPosted: Fri Oct 01, 2004 6:42 am 
Newbie

Joined: Tue Sep 21, 2004 9:23 am
Posts: 5
Hello,

is there a way to return null instead of a UnresolvableObjectException being thrown when a foreign key refers to a key that doesn't exist (anymore).

I know that this situation should not occur when using a decent dbms but i'm working with a legacy db that was setup with flaws. Deleting these corrupt relations is a solution. But at this moment i'm looking for a way to solve this problem without deleting data.

I found two topics that in some way cover this problem but don't have a solution :
http://forum.hibernate.org/viewtopic.php?t=931706 and http://forum.hibernate.org/viewtopic.php?t=924415

Hibernate version:
2.1.6


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 04, 2004 3:28 am 
Newbie

Joined: Tue Sep 21, 2004 9:23 am
Posts: 5
Really no one who can point me in the right direction ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 04, 2004 5:04 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
There is no built-in solution

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.