[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4585) support generator = "uuid.hex" for @javax.persistence.GeneratedValue

zhouyanming (JIRA) noreply at atlassian.com
Wed Nov 18 02:09:10 EST 2009


support generator = "uuid.hex" for @javax.persistence.GeneratedValue
--------------------------------------------------------------------

                 Key: HHH-4585
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4585
             Project: Hibernate Core
          Issue Type: Improvement
          Components: annotations
    Affects Versions: 3.5.0-Beta-2
            Reporter: zhouyanming


@javax.persistence.GeneratedValue(strategy = GenerationType.AUTO, generator = "uuid.hex")
will cause exception 

Caused by: org.hibernate.AnnotationException: Unknown Id.generator: uuid.hex
	at org.hibernate.cfg.BinderHelper.makeIdGenerator(BinderHelper.java:451)
	at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:2222)
	at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:2160)
	at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1426)

it must be
@javax.persistence.GeneratedValue(generator = "system-uuid")
@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid.hex")

it's intrusive depending hibernate api.







-- 
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