Search in sources :

Example 6 with BoltDriver

use of org.neo4j.ogm.drivers.bolt.driver.BoltDriver in project neo4j-ogm by neo4j.

the class DatesBoltTest method init.

@BeforeClass
public static void init() {
    assumeTrue(isBoltDriver());
    Configuration ogmConfiguration = getBaseConfigurationBuilder().useNativeTypes().build();
    BoltDriver boltOgmDriver = new BoltDriver();
    boltOgmDriver.configure(ogmConfiguration);
    sessionFactory = new SessionFactory(boltOgmDriver, DatesBoltTest.class.getPackage().getName());
}
Also used : SessionFactory(org.neo4j.ogm.session.SessionFactory) BoltDriver(org.neo4j.ogm.drivers.bolt.driver.BoltDriver) Configuration(org.neo4j.ogm.config.Configuration) BeforeClass(org.junit.BeforeClass)

Aggregations

BoltDriver (org.neo4j.ogm.drivers.bolt.driver.BoltDriver)6 SessionFactory (org.neo4j.ogm.session.SessionFactory)5 BeforeClass (org.junit.BeforeClass)4 Configuration (org.neo4j.ogm.config.Configuration)3 Driver (org.neo4j.driver.Driver)2 Driver (org.neo4j.ogm.driver.Driver)2 Before (org.junit.Before)1 Test (org.junit.Test)1 MetaData (org.neo4j.ogm.metadata.MetaData)1 DatesBoltTest (org.neo4j.ogm.persistence.types.nativetypes.DatesBoltTest)1 Session (org.neo4j.ogm.session.Session)1