Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.1 beta 6
Assignee:
Reporter: Emmanuel Bernard
Created: Mon, 24 Nov 2003 11:08 PM
Updated: Mon, 24 Nov 2003 11:08 PM
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
|