Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible to alter the data type of the rev column in the Hibernate Envers revinfo table for customization. However, it may require changes to the Hibernate Envers code and configuration.

To change the data type of the rev column, you would need to create a custom implementation of the RevisionEntity interface and configure Hibernate to use it. Within your custom implementation, you can define the rev column to have a different data type.

For example, if you wanted to change the rev column from a numeric type to a UUID type, you could define a custom @RevisionEntity class that includes a UUID property and use a custom Envers listener to generate and set the UUID value for each revision.

Keep in mind that changing the data type of the rev column could have implications for compatibility with other parts of your application that depend on this data type being numeric. So it's important to carefully consider the trade-offs before making this customization.