[hibernate-dev] multi-tenancy and ConnectionProvider

2011-03-22 Thread Steve Ebersole
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

Re: [hibernate-dev] HSEARCH-679 status

2011-03-22 Thread Tom Waterhouse
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

Re: [hibernate-dev] HSEARCH-679 status

2011-03-22 Thread Sanne Grinovero
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

Re: [hibernate-dev] HSEARCH-679 status

2011-03-22 Thread Tom Waterhouse
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

[hibernate-dev] nested ServiceRegistry ?

2011-03-22 Thread Steve Ebersole
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