]
Adam Warski updated HHH-3602:
-----------------------------
Attachment: VersionsEventListener.java
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,
VersionsEventListener.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: