fr.smallcrew.security.repository.DomainUserRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smallcrew-security Show documentation
Show all versions of smallcrew-security Show documentation
Foundation of all smallcrew's projects needing authenticated users and role management
The newest version!
package fr.smallcrew.security.repository;
import fr.smallcrew.security.domain.DomainUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;
@Transactional(readOnly = true)
public interface DomainUserRepository extends CrudRepository, JpaSpecificationExecutor {
DomainUser findByUsernameOrEmail(String username, String email);
DomainUser findByUsernameAndPassword(String username, String password);
}