remove spaces
This commit is contained in:
parent
709c80fa37
commit
18f35c43e7
|
@ -10,17 +10,9 @@ import java.util.Optional;
|
|||
@Repository
|
||||
public interface UserRepository extends JpaRepository<User, Long> {
|
||||
|
||||
@Query("SELECT c FROM User c WHERE c.email = :email")
|
||||
Optional<User> findByEmail(String email);
|
||||
|
||||
/*SELECT count(*) FROM users WHERE is_employee == 1;
|
||||
*/
|
||||
@Query("SELECT c FROM User c WHERE c.email = :email")
|
||||
Optional<User> findByEmail(String email);
|
||||
|
||||
|
||||
@Query("SELECT count(*) FROM User WHERE isEmployee = true")
|
||||
Optional<Integer> numberOfEmployees();
|
||||
|
||||
|
||||
@Query("SELECT count(*) FROM User WHERE isEmployee = true")
|
||||
Optional<Integer> numberOfEmployees();
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in New Issue