HHH-5839 - non-utf8 characters in AuditReaderImpl

This commit is contained in:
Sanne Grinovero 2011-01-13 11:46:15 +00:00
parent 04da27507e
commit 3fab254606
1 changed files with 2 additions and 2 deletions

View File

@ -280,11 +280,11 @@ public class AuditReaderImpl implements AuditReaderImplementor {
entity = ((HibernateProxy)entity).getHibernateLazyInitializer().getImplementation();
}
if(firstLevelCache.containsEntityName(primaryKey, revision, entity)) {
// it´s on envers FLC!
// it's on envers FLC!
return firstLevelCache.getFromEntityNameCache(primaryKey, revision, entity);
} else {
throw new HibernateException(
"Envers can´t resolve entityName for historic entity. The id, revision and entity is not on envers first level cache.");
"Envers can't resolve entityName for historic entity. The id, revision and entity is not on envers first level cache.");
}
}
}