[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3823?page=c...
]
Adam Warski resolved HHH-3823.
------------------------------
Resolution: Fixed
Fix Version/s: 3.5
Assignee: Adam Warski
Added to trunk. Please test if this suits your needs.
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira