File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/org/springframework/data/neo4j/core/mapping Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 7777 <checkstyle .skip>${skipTests} </checkstyle .skip>
7878 <checkstyle .version>8.40</checkstyle .version>
7979 <classgraph .version>4.8.149</classgraph .version>
80- <cypher-dsl .version>2022.6.0 </cypher-dsl .version>
80+ <cypher-dsl .version>2022.8.3 </cypher-dsl .version>
8181 <dist .id>spring-data-neo4j</dist .id>
8282 <dist .key>SDNEO4J</dist .key>
8383 <flatten-maven-plugin .version>1.2.5</flatten-maven-plugin .version>
Original file line number Diff line number Diff line change 3434import java .util .function .UnaryOperator ;
3535import java .util .regex .Pattern ;
3636
37+ import javax .lang .model .SourceVersion ;
38+
3739import org .apiguardian .api .API ;
3840import org .neo4j .cypherdsl .core .Condition ;
3941import org .neo4j .cypherdsl .core .Conditions ;
5557import org .neo4j .cypherdsl .core .SymbolicName ;
5658import org .neo4j .cypherdsl .core .renderer .Configuration ;
5759import org .neo4j .cypherdsl .core .renderer .Renderer ;
60+ import org .neo4j .cypherdsl .core .utils .Assertions ;
5861import org .springframework .data .domain .Sort ;
5962import org .springframework .data .mapping .MappingException ;
6063import org .springframework .data .mapping .PersistentProperty ;
@@ -619,6 +622,7 @@ public Collection<Expression> createReturnStatementForMatch(Neo4jPersistentEntit
619622 expression = Cypher .property (property .substring (0 , firstDot ), tail );
620623 } else {
621624 try {
625+ Assertions .isTrue (SourceVersion .isIdentifier (property ), "Name must be a valid identifier." );
622626 expression = Cypher .name (property );
623627 } catch (IllegalArgumentException e ) {
624628 if (e .getMessage ().endsWith ("." )) {
You can’t perform that action at this time.
0 commit comments