-->
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: Option to ignore incomplete features?
PostPosted: Wed Dec 01, 2004 5:11 pm 
Beginner
Beginner

Joined: Wed May 05, 2004 12:45 pm
Posts: 21
Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:



Hello,

I am wondering if there is an option to ignore incomplete data. I am searching database where I know that some data is missing. However, I would like to retrieve features (objects) that are complete, ignoring the features where data is corrupted. Right now when hibernate encounters incomplete data it throws the following error and stops processing.

No row with the given identifier exists: 123, of class: MyClass

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 7:41 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Your situation does not sound good, in anycase the use of proxies for lasy loading will reduce (hide or delay might be better) the exceptions.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 9:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You could probably use a where-attribute on the class/association level, filtering out incomplete rows.


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.