java - Query by Boolean properties in spring-data-jpa without using method parameters -


is possible query boolean properties in spring data jpa without using method parameters?

basically work without using custom @query annotation:

@query("select c entity c c.enabled = true") public iterable<entity> findallenabled(); 

the jpa repository section query creation has following methods.

true    findbyactivetrue()  … x.active = true false   findbyactivefalse() … x.active = false 

my guess use

@query public iterable<entity> findbyenabledtrue(); 

Comments