[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3823) Obtain current revision entity by AuditReader

Jan Ritzenhoff (JIRA) noreply at atlassian.com
Tue May 5 11:32:17 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33084#action_33084 ] 

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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list