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:
Oliver Gierke
2011-12-05 14:38:39 +01:00
parent d3bced0f86
commit 42b60cf8d4
5 changed files with 77 additions and 2 deletions

View File

@@ -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>