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