remove spaces

This commit is contained in:
Hendrik Schutter 2020-06-15 10:46:04 +02:00
parent 709c80fa37
commit 18f35c43e7
1 changed files with 4 additions and 12 deletions

View File

@ -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();
}