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