I'm not sure what the implications are, but I was able to get a neo4j datastore
working with Apache Isis by modifying
org.apache.isis.objectstore.jdo.datanucleus.DataNucleusApplicationComponents#createSchema
in the "Isis Core Runtime module" to check if the datanucleus StoreManager
supports the SchemaAwareStoreManager interface before casting.
It is persisting data successfully.
private void createSchema(final Map<String, String> props, final Set<String>
classesToBePersisted) {
final JDOPersistenceManagerFactory jdopmf =
(JDOPersistenceManagerFactory)persistenceManagerFactory;
final NucleusContext nucleusContext = jdopmf.getNucleusContext();
final StoreManager storeManager = nucleusContext.getStoreManager();
if (storeManager instanceof SchemaAwareStoreManager) {
((SchemaAwareStoreManager)storeManager).createSchema(classesToBePersisted,
asProperties(props));
}
}
Jeremy D. Branham
Tel: **DOTNET
-----Original Message-----
From: Branham, Jeremy [HR]
Sent: Saturday, December 20, 2014 8:27 AM
To: [email protected]
Subject: How would I use neo4j with Apache Isis?
I am attempting to use neo4j as a backing store for Apache Isis but it looks
like some development may be needed.
If I add the datanucleus-neo4j dependency, it appears the neo4j JDO connection
is initializing but Apache Isis is expecting a different type of StoreManager.
This is the exception I get
org.datanucleus.store.neo4j.Neo4jStoreManager cannot be cast to
org.datanucleus.store.schema.SchemaAwareStoreManager
How can I use neo4j as a backing store in Apache Isis?
I read about nosql support in Isis, but is it not part of the current
release?http://isis.apache.org/components/objectstores/nosql/about.html
Thanks!
This question is also posted at -
http://stackoverflow.com/questions/27579653/how-would-i-use-neo4j-with-apache-isis
________________________________
This e-mail may contain Sprint proprietary information intended for the sole
use of the recipient(s). Any use by others is prohibited. If you are not the
intended recipient, please contact the sender and delete all copies of the
message.
________________________________
This e-mail may contain Sprint proprietary information intended for the sole
use of the recipient(s). Any use by others is prohibited. If you are not the
intended recipient, please contact the sender and delete all copies of the
message.