package c.c2; import java.util.ArrayList; import java.util.List; import org.neo4j.ogm.annotation.GeneratedValue; import org.neo4j.ogm.annotation.Id; import org.neo4j.ogm.annotation.NodeEntity; import org.neo4j.ogm.annotation.Transient; import org.neo4j.ogm.id.UuidStrategy; import c.cg.DomainmodelFactory; @NodeEntity public class Class2 { @Id @GeneratedValue(strategy = UuidStrategy.class) private String givenIdentity; private String title; @Transient private List createdClass2 = new ArrayList(); @Transient private static DomainmodelFactory myFactory = new DomainmodelFactory(Class2.class); public Class2() { // TODO Auto-generated constructor stub } public String myIdIs() { return givenIdentity; } }