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