Thanks Michael.
I’m trying to work out with parts of SDN I can use without a spring container, and which I can’t.
static class Config extends Neo4jConfiguration {
GraphDatabaseService graphDatabaseService
Config(GraphDatabaseService service) throws ClassNotFoundException {
setBasePackage("com.truespeed.truedb");
this.graphDatabaseService = service
}
public GraphDatabaseService graphDatabaseService() {
return graphDatabaseService;
}
}
def setup() {
def testGraphDatabaseFactory = new TestGraphDatabaseFactory()
def graphDatabaseService = testGraphDatabaseFactory.newImpermanentDatabase()
def ee = new ExecutionEngine(graphDatabaseService)
def neo4jTemplate = new Neo4jTemplate(graphDatabaseService)
def repo = neo4jTemplate.repositoryFor(Foo)
Is it possible to use my repo without a spring container, or are will it all fall apart if the internals of SDN aren’t wired by spring? (I’m guessing the later).
Is there a steep learning curve around your Java-OGM, and do you have an references that I could chase?
The background is that we’re building a RESTX application, backed by Neo4J. They’ve got a static wiring configuration for speed of deployment, and I’d rather not introduce a spring context if I don’t have to. However, we’ve got an SDN (3.2.2) with Neo4j (2.1.6) app that we’re porting and I’m trying to remove all the spring as we go. I’m beginning to feel that I’m on to a hiding to nothing, and it’s not going to be possible with SDN 3.2.2.
We’re not doing much with SDN - our transactions are managed locally (we’re not using @Transactional), and we’re only really using the mapping capabilities of SDN through domain object annotations and then doing everything else directly through neo4jTemplate, using createEntityFromStoredType to map back into the domain.
The database is embedded; so another option open to us is to host the Neo4j separately and use REST to communicate with it, but there’s a lot of doubt here as to whether Neo4j 2.0 / SDN4.0 work yet with neo4j-spatial in a way that makes the transition worth going through, as it’s a fairly large transition and I believe that spatial is in some flux right now WRT 2.0.
Joe