-
1. Re: Patch to use hibernate 3.3.x with envers-3.4.0-snapshot
fbascheper Jan 20, 2009 9:01 AM (in response to fbascheper)I've found that a simple patch of
org/hibernate/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java
makes all unit tests pass for hibernate 3.3.2-snapshot
Index: src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java
===================================================================
--- src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java (revision 15803)
+++ src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java (working copy)
@@ -40,7 +40,7 @@
import org.hibernate.Transaction;
import org.hibernate.collection.PersistentCollection;
import org.hibernate.engine.EntityKey;
-import org.hibernate.engine.LoadQueryInfluencers;
+//import org.hibernate.engine.LoadQueryInfluencers;
import org.hibernate.engine.PersistenceContext;
import org.hibernate.engine.QueryParameters;
import org.hibernate.engine.SessionFactoryImplementor;
@@ -72,9 +72,9 @@
// Delegate methods
- public LoadQueryInfluencers getLoadQueryInfluencers() {
- return delegate.getLoadQueryInfluencers();
- }
+// public LoadQueryInfluencers getLoadQueryInfluencers() {
+// return delegate.getLoadQueryInfluencers();
+// }
public Interceptor getInterceptor() {
return delegate.getInterceptor(); -
2. Re: Patch to use hibernate 3.3.x with envers-3.4.0-snapshot
adamw Jan 27, 2009 2:37 AM (in response to fbascheper)Hello,
Hibernate 3.3 mostly works with Envers-snapshot, except some inheritance types :).
If you'd like an update in Hibernate, or a branch, please contact the subscription channels, as you mentioned in another post, or try on IRC/Hibernate forums. I don't have unfortunately much time to tackle this now, sorry :)
--
Adam -
3. Re: Patch to use hibernate 3.3.x with envers-3.4.0-snapshot
adamw Jan 27, 2009 2:55 AM (in response to fbascheper)Hello,
and yes, that's the issue that causes problems when using Envers-snapshot + Hibernate 3.3
So either this would have to be applied to Hibernate, or a work-around to Envers (which was present in the 1.0/1.1 versions, but removed when this bug was fixed in Hibernate)
--
Adam