i am working in rest api via spring.
i have isdeleted
a field in a table i need to find if isdeleted =0
in mysql then it show the data in row in a table as well as in application list but if isdeleted=1
,the data remains in table in database but doesn't show in list in applicatiopn that is soft delete,how could i implement this condition in repository file by using findall()
method
public interface FoodCourtRepository extends JpaRepository<FoodCourtEntity, Long> {
List<FoodCourtEntity> findAll(isdeleted=false???);
}
findAll(Example– bkumar Jul 25 '17 at 09:00example); public interface FoodCourtRepository extends JpaRepository {
List findAll(isdeleted=false);
} how could i apply this condition by this method(( IterablefindAll(Exampleexample);)) in spring suite tool in repository file