-->
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.  [ 4 posts ] 
Author Message
 Post subject: saveOrUpdateCopy with an interceptor
PostPosted: Thu Jun 24, 2004 7:47 am 
Newbie

Joined: Mon Dec 15, 2003 3:34 pm
Posts: 18
Hi

We have a personalized interceptor created specifically for our system which allows it's isUnsaved method to return true or false whether an object with a composite id is saved or not.
However when we have to use the saveOrUpdatedCopy the isUnsaved method of our interceptor is not called in order to find out if the object is persisted or not. This causes exceptions because we have objects with composite ids passed to the saveOrUpdateCopy call.

So, we are wondering if this behavior is suposed to be this way, or if it might be a bug.

Any suggestions will be wellcome.

Thanks in advance,
Gabriel C. Oliveira

_________________
Gabriel C. Oliveira
Sumersoft Technology, Brazil


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 24, 2004 12:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I am sure saveOrUpdate does

Code:
Boolean isUnsaved = interceptor.isUnsaved(object);

just look at the sourcecode.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 24, 2004 1:07 pm 
Newbie

Joined: Mon Dec 15, 2003 3:34 pm
Posts: 18
Yes, indeed.

But I was talking about the saveOrUpdateCopy method..
We saw the source code but we couldn't find any call to the interceptor's isUnsaved method.

Gabriel.

_________________
Gabriel C. Oliveira
Sumersoft Technology, Brazil


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 24, 2004 1:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Ah okay, sorry did not read correctly. This might be a bug, please report to JIRA.


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