Skip to content

Commit 6985e8c

Browse files
committed
Polishing
Signed-off-by: mipo256 <[email protected]>
1 parent fce3a56 commit 6985e8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/BasicRelationalPersistentProperty.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,11 @@ public boolean isOrdered() {
262262

263263
@Override
264264
public boolean isEmbedded() {
265-
return isEmbedded || (isIdProperty() && isEntity());
265+
return isEmbedded || isCompositeId();
266+
}
267+
268+
private boolean isCompositeId() {
269+
return isIdProperty() && isEntity();
266270
}
267271

268272
@Override

0 commit comments

Comments
 (0)