[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3602) Inheritence issue

Adam Warski (JIRA) noreply at atlassian.com
Fri Nov 14 10:25:16 EST 2008


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

Adam Warski resolved HHH-3602.
------------------------------

         Assignee: Adam Warski
       Resolution: Fixed
    Fix Version/s: 3.4

The fix is in trunk. I'll also attach a patched VersionsEventListener in a moment.

> Inheritence issue
> -----------------
>
>                 Key: HHH-3602
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3602
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>         Environment: Mac OS 1.5.5
> Hibernate Version: 3.2.6.ga
> Envers Version: 1.1.0
> Database: MySQL
>            Reporter: Amin Mohammed-Coleman
>            Assignee: Adam Warski
>             Fix For: 3.4
>
>         Attachments: Address.java, Contact.java, PersonalContact.java
>
>
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189232#4189232
> After creating a PersonalContact and then modifying the entity by adding an address, the following fails to return the address:
> VersionsReader reader = VersionsReaderFactory.get(hibernateTemplate.getSessionFactory().getCurrentSession());
> 		VersionsOrder versionOrder = dateAsc ? RevisionProperty.asc(): RevisionProperty.desc();
> 		List<?> result = reader.createQuery().forRevisionsOfEntity(entityClass,true, true).add(VersionsRestrictions.idEq(entityId)).addOrder(versionOrder).getResultList();

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