Feature Requests item #650587, was opened at 2002-12-09 09:38
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428711&aid=650587&group_id=40712

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Gavin King (oneovthafew)
Assigned to: Nobody/Anonymous (nobody)
Summary: unsaved-value for <property>

Initial Comment:
Currently only the <id> and <composite-id> elements
permit the unsaved-value attribute. There are a couple
of circumstances where that is *not* convenient;
particularly in the case of assigned identifiers. So we
should generalize the model and allow unsaved-value for
 <property> or <key-property>.

----------------------------------------------------------------------

>Comment By: Gavin King (oneovthafew)
Date: 2003-01-06 14:35

Message:
Logged In: YES 
user_id=384580

yep, thats the idea. Its basically pretty easy to implement
this . Start by changing ClassPersister.isUnsaved() to have
the following signature:

public boolean isUnsaved(Serializable id, Object object)

That way the persister can also interrogate the object's
version property....

Do you want to create a patch against the Hibernate 2 source
tree?

----------------------------------------------------------------------

Comment By: Mark Woon (unkyaku)
Date: 2003-01-06 14:19

Message:
Logged In: YES 
user_id=435832

Gavin, this would potentially solve the cascade prolem for
objects that have an assigned identifiers.  It would be
great to be able to specify unsaved-value on either
<version> or <timestamp> instead of <id> for this purpose.


----------------------------------------------------------------------

Comment By: Gavin King (oneovthafew)
Date: 2003-01-06 12:54

Message:
Logged In: YES 
user_id=384580

This would be *particularly* useful for the <version> and
<timestamp> elements; ie.

<version name="version" unsaved-value="0"/>
<timestamp name="lastUpdated" unsaved-value="null"/>


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428711&aid=650587&group_id=40712


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to