You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/BasicRelationalPersistentProperty.java
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/ExpressionEvaluator.java
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/MappedCollection.java
+5-3
Original file line number
Diff line number
Diff line change
@@ -37,16 +37,18 @@
37
37
public @interface MappedCollection {
38
38
39
39
/**
40
-
* The column name for id column in the corresponding relationship table. Defaults to {@link NamingStrategy} usage if
41
-
* the value is empty.
40
+
* The column name for id column in the corresponding relationship table. The attribute supports SpEL expressions to
41
+
* dynamically calculate the column name on a per-operation basis. Defaults to {@link NamingStrategy} usage if the
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/RelationalMappingContext.java
+8-1
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,13 @@ public void setForceQuote(boolean forceQuote) {
83
83
this.forceQuote = forceQuote;
84
84
}
85
85
86
+
/**
87
+
* Set the {@link SqlIdentifierSanitizer} to sanitize
88
+
* {@link org.springframework.data.relational.core.sql.SqlIdentifier identifiers} created from SpEL expressions.
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/SqlIdentifierSanitizer.java
Copy file name to clipboardExpand all lines: spring-data-relational/src/test/java/org/springframework/data/relational/core/mapping/BasicRelationalPersistentPropertyUnitTests.java
+27-14
Original file line number
Diff line number
Diff line change
@@ -72,14 +72,24 @@ public void detectsAnnotatedColumnAndKeyName() {
0 commit comments