[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4470) to-one associations to not audited entities should be audited as a simple value (the FK value)

Nicolas Rougé (JIRA) noreply at atlassian.com
Thu Oct 1 05:27:50 EDT 2009


to-one associations to not audited entities should be audited as a simple value (the FK value)
----------------------------------------------------------------------------------------------

                 Key: HHH-4470
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4470
             Project: Hibernate Core
          Issue Type: Improvement
          Components: envers
            Reporter: Nicolas Rougé
            Priority: Minor
         Attachments: to-one-not-audited.patch

Having a to-one association with a non-audited entity generates a MappingException, with a message "An audited relation from <name of the entity>.<name of the property> to a not audited entity <name of the referenced entity>!".
When we don't want to audit the referenced entity, I think Envers should audit the association as the FK value, when it's a simple value.
See my proposal in the attached patch.

-- 
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