I am using ElasticsearchRepository
and want to query on boolean property.
Sample snippet here:
class TempBean
{
private boolean isActive;
}
interface MyEntityRepository implements CrudRepository<MyEntity, Long>
{
TempBean findByIsActiveTrue();
}
How to query on the active property without passing it as param to the abstract method? This is possible if I would have JpaRepository as per this answer how-to-query-for-boolean-property-with-spring-crudrepository