]
Adam Warski resolved HHH-3560.
------------------------------
Assignee: Adam Warski
Resolution: Fixed
Fix Version/s: 3.5
Done with HHH-4010
Assume entities relationships as unversioned by default
-------------------------------------------------------
Key: HHH-3560
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3560
Project: Hibernate Core
Issue Type: New Feature
Components: envers
Reporter: Adam Warski
Assignee: Adam Warski
Fix For: 3.5
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141471
Assume that each relation between entities is unversioned unless entity is explicitly
annotated with @Versioned.
In current implementation if versioned entity has reference to non-versioned entity an
MappingException is being thrown unless the @Unversioned annotation is used in appropriate
field. If there is a lot of entities that are referenced but not versioned it requires to
apply lot of @Unversioned annotations. This is quite error-prone while it is easy to
forgot about some fields.
I've suggest to treat each reference to entity as it is annotated with @Unversioned
unless the entity is annotated with @Versioned. In other words treat entities
ralationships as implicitly @Unversioned unless @Versioned is not set explicitly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: