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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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);