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