[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4010?page=c...
]
Tomasz Bech commented on HHH-4010:
----------------------------------
I've implemented this functionality.
Patch is done in svn branch:
http://anonsvn.jboss.org/repos/hibernate/core/branches/envers-hibernate-3.3 and attached
to this issue together with new tests. All 100% tests passes.
How to use it:
If there is a need to have assiociation property audited, which target is not audited
class/object, simply annotate such property:
@Audited(targetAuditMode = TargetAuditMode.NotAudited)
(If just @Audited is put, and target entity is not audited, there will be exception during
envers initialization.)
support auditing of entity having reference (many-to-one relation) to
not audited entity
----------------------------------------------------------------------------------------
Key: HHH-4010
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4010
Project: Hibernate Core
Issue Type: New Feature
Components: envers
Affects Versions: 3.3.2
Reporter: Tomasz Bech
Attachments: envers.patch
There is an annotated (with @Audited) entity class (lets say - class A), it has
ManyToOne reference to another class (lets named this class as B).
For various reason, class B should stay as not audited - for example because B is a
static dictionary class with milion of records, so duplications in the Audited table is
not advised or possible.
Currently this is not supported by evners (target entity must me audited as well for
now).
Related topic on forum:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157846
We are going to implement this feature and provide the patch as well.
--
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