-->
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.  [ 2 posts ] 
Author Message
 Post subject: Obtainin the object caused an Exception after flush()
PostPosted: Mon Mar 15, 2004 9:12 am 
Newbie

Joined: Mon Mar 15, 2004 8:55 am
Posts: 2
Location: Germany
Hi,

I wondered if I can get more Information about the object that caused
an Exception when flushing a session.

This may occur when flush() modifies more than one object (e.g. when cascading operations). To get information about the object i have to
"parse" the exeption text.

To act more accurate on Exceptions somtehing like
Code:
hibernateException.getObject() : Object
could return the wrong object.

At the time, the only chance to get this Information is to flush()
after every change. But this avoids the advantage to let Hibernate perform
the right order of updates.

Has someone any solutions in mind?

Thanks,

Jens


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 15, 2004 1:02 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I'm not sure this is doable.
An exception can occurs because of previous updates on other objects (in the same flush), but we can't manage it since it's an SQL work and error.
so returning the offending object might not be appropriate.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.