[hibernate-dev] [OGM-122] Cassandra integration and hibernate-core version
kmx.petals at gmail.com
kmx.petals at gmail.com
Sun Mar 25 07:10:36 EDT 2012
Hi,
I am trying to integrate Cassandra into Hibernate OGM (cf. issue
OGM-122) and as I am a noob, I have some noob questions...
Presently, the current version of Hibernate OGM is using the version
4.0.1-Final of Hibernate core but this version seems to call twice the
start method from CassandraDatastoreProvider.
Indeed, in the method initializeService() from the class
AbstractServiceRegistryImpl, the phase 4 which is starting the service
(and so the CassandraDatastoreProvider) is calling twice startService :
// PHASE 4 : Start service
serviceBinding.getLifecycleOwner().startService( serviceBinding );
startService( serviceBinding );
As the start method of CassandraDatastoreProvider is optionaly creating
the keyspace and initializing the columnFamily, this is done twice and
is not what is expected.
However, in the version 4.1.1-Final of Hibernate-core, the second call
is not done.
Is it a real issue and what are the consequences in the ingration of
other NoSQL products?
Should Hibernate OGM move to Hibernate-core 4.1.1+?
(I already made the work to test but I am not sure of consequence since
interfaces changed -ex: SessionFactoryImplementor or EntityPersister)
but it seems to work ;-)
Cheers,
Khanh Tuong
More information about the hibernate-dev
mailing list