DATAJPA-132 - Implemented handling of True and False keywords on query creation.
Query derivation mechanism now supports True and False as keywords in finder methods:
class User {
boolean active;
}
interface UserRepository<User, Long> {
List<User> findByActiveTrue() ;
}
This commit is contained in:
@@ -271,6 +271,22 @@
|
||||
|
||||
<entry><code>… where x.age not in ?1</code></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><code>True</code></entry>
|
||||
|
||||
<entry><code>findByActiveTrue()</code></entry>
|
||||
|
||||
<entry><code>… where x.active = true</code></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><code>False</code></entry>
|
||||
|
||||
<entry><code>findByActiveFalse()</code></entry>
|
||||
|
||||
<entry><code>… where x.active = false</code></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table><note>
|
||||
|
||||
Reference in New Issue
Block a user