[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3878?page=c...
]
Benno Markiewicz commented on HHH-3878:
---------------------------------------
In org.hibernate.envers.query.impl.RevisionsOfEntityQuery (1.2.0.GA-hibernate-3.3) the bug
still exists
Fix:
final Object revisionTypeObject = versionsEntity.get(revisionTypePropertyName);
// BUGFIX do not reinstanciate deleted objects
if (revisionTypeObject instanceof RevisionType) {
final RevisionType revisionType = (RevisionType) revisionTypeObject;
if (RevisionType.DEL != revisionType) {
entity = entityInstantiator.createInstanceFromVersionsEntity(entityName,
versionsEntity, revision);
}
}
Exception when querying historical data for deleted Entites
-----------------------------------------------------------
Key: HHH-3878
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3878
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.5
Environment: Hibernate 3.5.0 from the trunk on April 7, 2009
MySQL 5
Reporter: Brocha Strous
Assignee: Adam Warski
Fix For: 3.5
When an entity has a column containing a short. When querying for all changed entities
including deletions and there have been deletions i get an exception. Same query but
excluding deletions (selectDeletedEntities=false) works fine.
Forum topic with code example:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154377
--
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