|
Ćukasz,
I know about AuditEntity.id(), but
-
In Hibernate 4.1.1 it does not yet extend AuditProperty, so it's useless
-
Looking at javadoc for AuditProperty,property(propertyName), one could think it works for "entity properties" and not for "entity properties except id". Javadoc is quite reasonable, there is no rationale for AuditProperty,property(propertyName) not to support the id property and the implementation should follow. AuditEntity.id() is, of course, a nice short-cut that can offer even more options than AuditProperty,property(), usable when you perfectly know that you're using a property.
|