Message:
The following issue has been re-assigned.
Assignee: Gavin King (mailto:ga...@hi...)
Assigner: Gavin King (mailto:ga...@hi...)
Date: Wed, 26 Nov 2003 10:19 AM
Comment:
Patch looks good to me. Thanks.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-496
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-496
Summary: Version and unsaved-value
Type: New Feature
Status: Open
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.1 beta 6
Assignee: Gavin King
Reporter: Emmanuel Bernard
Created: Mon, 24 Nov 2003 11:08 PM
Updated: Wed, 26 Nov 2003 10:19 AM
Environment: Hibernate CVS head of branchv21 nov 25
Description:
Here is a patch allowing unsaved value for version. This is useful for saveOrUpdate() assigned id and having version as primitive type.
Version unsaved-value can be:
* undefined: let the saveOrUpdate choice to id's unsaved-value
this is the default to prevent mapping break down primitive type version)
* null: save if version==null, update otherwise
* negative: save if version < 0, update otherwise (allowed for short, int, long only)
Timestamp unsaved-value can be:
* null: I think this is the only needed behavior. I don't know how undefined could be useful.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|