FYI: @Query strings' date & string-like parameters no longer can be quoted

20 views
Skip to first unread message

Matthew Adams

unread,
Apr 3, 2014, 6:27:59 PM4/3/14
to spring-dat...@googlegroups.com
Hi all,

I created & fixed https://jira.spring.io/browse/DATACASS-121 which makes it so that @Query strings that take String-like & Date parameters no longer need to be quoted.  Strings containing single quotes are properly escaped.  Query parameter indexes are still zero-based.

That means queries should look like this, for example:

@Query("select * from person where lastname = ?0")
List<Person> findFolksWithLastnameAsList(String lastname);

These changes are now in master.

HTH,

Matthew

Reply all
Reply to author
Forward
0 new messages