]
Jan Ritzenhoff commented on HHH-3823:
-------------------------------------
Great. That's exactly what we were talking about. :)
Regards JR
Obtain current revision entity by AuditReader
---------------------------------------------
Key: HHH-3823
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3823
Project: Hibernate Core
Issue Type: New Feature
Components: envers
Reporter: Jan Ritzenhoff
Assignee: Adam Warski
Fix For: 3.5
Implement a new method in the AuditReader class, like:
auditReader.getCurrentRevisionEntity(boolean create)
The method would return the current revision entity, letting you to fill any of the
custom fields. The create parameter would specify if a revision entity should be created,
even if no audited entities have been modified. So you dont have to lookup anything in the
RevisionListener and you can easy pass some revision-information from the front to the
back.
Based on forum discussion:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=151959
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: