[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3560) Assume entities relationships as unversioned by default

Adam Warski (JIRA) noreply at atlassian.com
Thu Aug 6 14:24:14 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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