Skip to content

Commit

Permalink
Java format, my old friend it's so nice to come to see you again.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons committed Nov 14, 2024
1 parent fea08d7 commit bcfaa3d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ public int createOrUpdate(Movie movie) {
}

public Map<String, Object> findAsMap(String title) {
// Magic comment just added because I configured the driver here to always assume SQL by default
// Magic comment just added because I configured the driver here to always assume
// SQL by default
// SQL parameters start at 1, though
return this.jdbcTemplate.queryForObject(
"/*+ NEO4J FORCE_CYPHER */ MATCH (p:Movie) WHERE p.title = $1 RETURN p",
Node.class, title
).asMap();
return this.jdbcTemplate
.queryForObject("/*+ NEO4J FORCE_CYPHER */ MATCH (p:Movie) WHERE p.title = $1 RETURN p", Node.class, title)
.asMap();
}

}

0 comments on commit bcfaa3d

Please sign in to comment.