[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3878) Exception when querying historical data for deleted Entites
Benno Markiewicz (JIRA)
noreply at atlassian.com
Thu Apr 30 09:03:17 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33057#action_33057 ]
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list