[hibernate-issues] [Hibernate-JIRA] Created: (ANN-804) User specified data type for @Version

Darren Bell (JIRA) noreply at atlassian.com
Fri Feb 20 10:05:38 EST 2009


User specified data type for @Version
-------------------------------------

                 Key: ANN-804
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-804
             Project: Hibernate Annotations
          Issue Type: Improvement
    Affects Versions: 3.4.0.GA
            Reporter: Darren Bell


We are creating a database that will be distributed and have multiple masters.  This database is being replicated at the database level.
All our id's are guid (32 char hex strings) for this purpose.  

The problem we are having that when the same row is updated at two different locations at the same time, they will get the same version number (even if diff columns were updating and the replication engine could handle it).

What we would like is to be able to pass a differene tgenerator to the version annotation and set the type to char(32).  Maybe :

@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")

This would then work.  I know this in javax.persistence, but maybe add a hibernate one as well?

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list