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

Amin Mohammed-Coleman (JIRA) noreply at atlassian.com
Thu Nov 13 16:54:15 EST 2008


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