use of org.neo4j.ogm.context.EntityMapper in project neo4j-ogm by neo4j.
the class CompilerTest method mapAndCompile.
private static Compiler mapAndCompile(Object object, int depth) {
EntityMapper mapper = new EntityGraphMapper(mappingMetadata, mappingContext);
CompileContext context = mapper.map(object, depth);
Compiler compiler = context.getCompiler();
compiler.useStatementFactory(new RowStatementFactory());
return compiler;
}
use of org.neo4j.ogm.context.EntityMapper in project neo4j-ogm by neo4j.
the class CyclicStructureTest method mapAndCompile.
private static Compiler mapAndCompile(Neo4jSession session, Object object, int depth) {
final MetaData metaData = session.metaData();
final MappingContext mappingContext = new MappingContext(metaData);
EntityMapper mapper = new EntityGraphMapper(metaData, mappingContext);
CompileContext context = mapper.map(object, depth);
Compiler compiler = context.getCompiler();
compiler.useStatementFactory(new RowStatementFactory());
return compiler;
}
Aggregations