fix formatting
This commit is contained in:
parent
e0e6fbad2b
commit
badc8c60d2
|
@ -7,7 +7,7 @@ import org.neo4j.ogm.annotation.Relationship;
|
||||||
|
|
||||||
@NodeEntity
|
@NodeEntity
|
||||||
public class Car {
|
public class Car {
|
||||||
@Id @GeneratedValue
|
@Id @GeneratedValue
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private String make;
|
private String make;
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||||
|
|
||||||
@NodeEntity
|
@NodeEntity
|
||||||
public class Movie {
|
public class Movie {
|
||||||
@Id @GeneratedValue
|
@Id @GeneratedValue
|
||||||
Long id;
|
Long id;
|
||||||
|
|
||||||
private String title;
|
private String title;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||||
@JsonIdentityInfo(generator = JSOGGenerator.class)
|
@JsonIdentityInfo(generator = JSOGGenerator.class)
|
||||||
@NodeEntity
|
@NodeEntity
|
||||||
public class Person {
|
public class Person {
|
||||||
@Id @GeneratedValue
|
@Id @GeneratedValue
|
||||||
Long id;
|
Long id;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Collection;
|
||||||
@JsonIdentityInfo(generator = JSOGGenerator.class)
|
@JsonIdentityInfo(generator = JSOGGenerator.class)
|
||||||
@RelationshipEntity(type = "ACTED_IN")
|
@RelationshipEntity(type = "ACTED_IN")
|
||||||
public class Role {
|
public class Role {
|
||||||
@Id @GeneratedValue
|
@Id @GeneratedValue
|
||||||
Long id;
|
Long id;
|
||||||
private Collection<String> roles;
|
private Collection<String> roles;
|
||||||
@StartNode
|
@StartNode
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class Neo4jOgmLiveTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOgm() {
|
public void testOgm() {
|
||||||
Configuration conf =new Configuration.Builder().build();
|
Configuration conf = new Configuration.Builder().build();
|
||||||
|
|
||||||
SessionFactory factory = new SessionFactory(conf, "com.baeldung.spring.data.neo4j.domain");
|
SessionFactory factory = new SessionFactory(conf, "com.baeldung.spring.data.neo4j.domain");
|
||||||
Session session = factory.openSession();
|
Session session = factory.openSession();
|
||||||
|
|
Loading…
Reference in New Issue