Skip to content

Commit 3d21ac7

Browse files
Add required id field to Spring Data Neo4j test class
Fixes gh-28303
1 parent 3c6e061 commit 3d21ac7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/scan/TestRelationshipProperties.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,9 +16,15 @@
1616

1717
package org.springframework.boot.autoconfigure.data.neo4j.scan;
1818

19+
import org.springframework.data.neo4j.core.schema.GeneratedValue;
20+
import org.springframework.data.neo4j.core.schema.Id;
1921
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
2022

2123
@RelationshipProperties
2224
public class TestRelationshipProperties {
2325

26+
@Id
27+
@GeneratedValue
28+
Long id;
29+
2430
}

0 commit comments

Comments
 (0)