ServiceRegistry itself has worked out great imo, but I am starting to run into
difficulties in migrating certain things to be services. Specifically I had
issues with both event listeners and Statistics. In each case the issue was
slightly different, but both were solveable by having a notion
Sanne,
I don't see the method you've identified in PersistentClass. The closest I
could find to identifying if a property has been initialized is
Hibernate.isPropertyInitialized(), but the method always returns true
(object isn't a HibernateProxy, FieldInterceptionHelper.isInstrumented()
returns
Hi Tom,
sorry, copy paste error: I meant
org.hibernate.collection.PersistentCollection, all collections
retrieved from the database implement PersistentCollection, which
exposes the wasInitialized() method.
So just cast the collection to PersistentCollection and you should be
able to check if it wa
Sanne, that testing strategy doesn't work unfortunately. The collection is
loaded by virtue of creating test data, so it is intialized. I don't see
how HSearch can be tested at the entity level.
Perhaps a smaller unit test of FullIndexTextEventListener is the way to go
instead. I'm not sure wha
reference http://opensource.atlassian.com/projects/hibernate/browse/HHH-5697
For multi-tenancy implemented by sepaerate schema we need the ability to tell
the ConnectionProvider about the tenant for the given getConnection() request.
I really see 3 approaches to this:
1) Have 2 hierarchies her