Spring Neo4J OGM

Spring integration for Java Neo4J Object Graph Mapper (OGM)

License

License

Categories

Categories

Neo4J Data Databases
GroupId

GroupId

io.innerloop
ArtifactId

ArtifactId

spring-neo4j-ogm
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Neo4J OGM
Spring integration for Java Neo4J Object Graph Mapper (OGM)
Project URL

Project URL

https://github.com/inner-loop/spring-neo4j-ogm
Source Code Management

Source Code Management

https://github.com/inner-loop/spring-neo4j-ogm

Download spring-neo4j-ogm

How to add to project

<!-- https://jarcasting.com/artifacts/io.innerloop/spring-neo4j-ogm/ -->
<dependency>
    <groupId>io.innerloop</groupId>
    <artifactId>spring-neo4j-ogm</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.innerloop/spring-neo4j-ogm/
implementation 'io.innerloop:spring-neo4j-ogm:0.2.0'
// https://jarcasting.com/artifacts/io.innerloop/spring-neo4j-ogm/
implementation ("io.innerloop:spring-neo4j-ogm:0.2.0")
'io.innerloop:spring-neo4j-ogm:jar:0.2.0'
<dependency org="io.innerloop" name="spring-neo4j-ogm" rev="0.2.0">
  <artifact name="spring-neo4j-ogm" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.innerloop', module='spring-neo4j-ogm', version='0.2.0')
)
libraryDependencies += "io.innerloop" % "spring-neo4j-ogm" % "0.2.0"
[io.innerloop/spring-neo4j-ogm "0.2.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework : spring-context jar 4.2.4.RELEASE
org.springframework : spring-tx jar 4.2.4.RELEASE
io.innerloop : java-neo4j-ogm jar 0.3.0
org.slf4j : slf4j-api jar 1.7.7

test (7)

Group / Artifact Type Version
org.neo4j : neo4j-io jar 2.3.1
org.neo4j.app : neo4j-server jar 2.3.1
org.neo4j.app : neo4j-server jar 2.3.1
junit : junit jar 4.11
org.springframework : spring-test jar 4.2.4.RELEASE
org.neo4j : neo4j-kernel jar 2.3.1
ch.qos.logback : logback-classic jar 1.1.2

Project Modules

There are no modules declared in this project.

spring-neo4j-ogm

NOTE: This project is no longer actively developed supported however, I am an active developer now on the the official Spring project that integrates with the Neo4j OGM and recommend developers use those from now on.

Spring integration for Java Neo4J OGM.

Build Status

#Quick Start This module adds support for Spring @Transactional.

Use this module instead of the Java Neo4J OGM for Spring projects.

Install from Maven

Add the following to your <dependencies> .. </dependencies> section.

<dependency>
    <groupId>io.innerloop</groupId>
    <artifactId>spring-neo4j-ogm/artifactId>
    <version>0.2.0</version>
</dependency>

Install from Gradle

Add the following to your dependencies { .. } section.

compile group: 'io.innerloop', name: 'spring-neo4j-ogm', version: '0.2.0'

... or more simply:

compile: 'io.innerloop:spring-neo4j-ogm:0.2.0'

See Java Neo4J OGM for more details on how to use this library.

Examples

Using applicationContext.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                            http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
                            http://www.springframework.org/schema/context
                            http://www.springframework.org/schema/context/spring-context-4.1.xsd
                            http://www.springframework.org/schema/tx
                            http://www.springframework.org/schema/tx/spring-tx-4.1.xsd">


    <tx:annotation-driven transaction-manager="txManager" />
    <context:spring-configured/>
    <context:annotation-config/>
    <context:component-scan base-package="io.innerloop"/>

    <bean id="txManager" class="io.innerloop.neo4j.ogm.spring.transaction.Neo4jTransactionManager">
        <constructor-arg ref="sessionFactory"/>
    </bean>

    <bean id="neo4jClient" class="io.innerloop.neo4j.client.Neo4jClient">
        <constructor-arg value="#{systemProperties['neo4j.rest.url']}" index="0"/>
        <constructor-arg value="#{systemProperties['neo4j.rest.username']}" index="1"/>
        <constructor-arg value="#{systemProperties['neo4j.rest.password']}" index="2"/>
    </bean>

    <bean id="sessionFactory" class="io.innerloop.neo4j.ogm.SessionFactory">
        <constructor-arg ref="neo4jClient"/>
        <constructor-arg value="io.innerloop.insight.domain"/>
    </bean>
</beans>

Versions

Version
0.2.0
0.1.0