[hibernate-issues] [JIRA] (HHH-14055) Allow java.util.UUID as type of field annotated with @RevisionNumber

Borislav Banchev (JIRA) jira at hibernate.atlassian.net
Tue Jun 2 04:26:30 EDT 2020


Borislav Banchev ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ed6071cd986a30c29d64487 ) *updated* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYmI4YjgyM2Q3ZGUzNGZlMmJhZWEwM2NjMzBhNThiODMiLCJwIjoiaiJ9 ) / New Feature ( https://hibernate.atlassian.net/browse/HHH-14055?atlOrigin=eyJpIjoiYmI4YjgyM2Q3ZGUzNGZlMmJhZWEwM2NjMzBhNThiODMiLCJwIjoiaiJ9 ) HHH-14055 ( https://hibernate.atlassian.net/browse/HHH-14055?atlOrigin=eyJpIjoiYmI4YjgyM2Q3ZGUzNGZlMmJhZWEwM2NjMzBhNThiODMiLCJwIjoiaiJ9 ) Allow java.util.UUID as type of field annotated with @RevisionNumber ( https://hibernate.atlassian.net/browse/HHH-14055?atlOrigin=eyJpIjoiYmI4YjgyM2Q3ZGUzNGZlMmJhZWEwM2NjMzBhNThiODMiLCJwIjoiaiJ9 )

Change By: Borislav Banchev ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ed6071cd986a30c29d64487 )

Currently _The field annotated with @RevisionNumber must be of type int, Integer, long, Long_ and this is a major constraint in specific cases and it is a known [issue|https://stackoverflow.com/questions/43465734/issue-with-implementing-uuids-with-hibernate-envers]. Allowing a user to chose choose UUID as a field type will give extra flexibility.

The proposed change is in RevisionInfoConfiguration class.

( https://hibernate.atlassian.net/browse/HHH-14055#add-comment?atlOrigin=eyJpIjoiYmI4YjgyM2Q3ZGUzNGZlMmJhZWEwM2NjMzBhNThiODMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14055#add-comment?atlOrigin=eyJpIjoiYmI4YjgyM2Q3ZGUzNGZlMmJhZWEwM2NjMzBhNThiODMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100127- sha1:2783216 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200602/72990432/attachment.html 


More information about the hibernate-issues mailing list