Do you have a common base class for Hibernate entities, i.e. a MappedSuperclass with id, version and other common properties? Are there any drawbacks?
Example:
It works well for me too.
Notice that you can also in this entity add some event listeners / interceptors like the Hibernate Envers one or any custom one according to your need so that you can: - Track all modifications - Know which user made the last modification - Update automatically the last modification - Set automatically the first insertion date And ther stuff like that...