File tree Expand file tree Collapse file tree
persistence-modules/spring-data-neo4j/src
main/java/com/baeldung/spring/data/neo4j/domain
test/java/com/baeldung/neo4j Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88@ NodeEntity
99public class Car {
10- @ Id @ GeneratedValue
10+ @ Id @ GeneratedValue
1111 private Long id ;
1212
1313 private String make ;
Original file line number Diff line number Diff line change 1515
1616@ NodeEntity
1717public class Movie {
18- @ Id @ GeneratedValue
18+ @ Id @ GeneratedValue
1919 Long id ;
2020
2121 private String title ;
Original file line number Diff line number Diff line change 1313@ JsonIdentityInfo (generator = JSOGGenerator .class )
1414@ NodeEntity
1515public class Person {
16- @ Id @ GeneratedValue
16+ @ Id @ GeneratedValue
1717 Long id ;
1818
1919 private String name ;
Original file line number Diff line number Diff line change 1313@ JsonIdentityInfo (generator = JSOGGenerator .class )
1414@ RelationshipEntity (type = "ACTED_IN" )
1515public class Role {
16- @ Id @ GeneratedValue
16+ @ Id @ GeneratedValue
1717 Long id ;
1818 private Collection <String > roles ;
1919 @ StartNode
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public class Neo4jOgmLiveTest {
1717
1818 @ Test
1919 public void testOgm () {
20- Configuration conf =new Configuration .Builder ().build ();
20+ Configuration conf = new Configuration .Builder ().build ();
2121
2222 SessionFactory factory = new SessionFactory (conf , "com.baeldung.spring.data.neo4j.domain" );
2323 Session session = factory .openSession ();
You can’t perform that action at this time.
0 commit comments