-->
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: save() attempts to set properties of a transient reference
PostPosted: Sun Apr 16, 2006 10:03 am 
Newbie

Joined: Sun Apr 09, 2006 8:38 am
Posts: 14
Hello all,

I am trying to perform save() on a transient entity, with cascading.
the entity holds a reference to another transient entity.
I am using versioning of entities, with unsaved-value=negative (version type=Integer).

for some reason, hibernate attempts to set some of the properties (bussiness properites, not something like the version or id or whatever) of the referenced entity.

from what I gather, there is a logic that says (in versioning.seedVersion())
that if there is a situation where the current version is null or negative,
hibernate sets the version to be a seed version, and decided that the properties need to be substituted.

why should the properties be substituted in his case?

Thanks in advance,

Assaf.


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.