com.infusers.core.user.UserRepository Maven / Gradle / Ivy
package com.infusers.core.user;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
public interface UserRepository extends CrudRepository {
@Query("SELECT u FROM APIUser u WHERE u.username = :username")
public APIUser findByUsername(@Param("username") String username);
@Query("SELECT u FROM APIUser u WHERE u.verificationCode = ?1")
public APIUser findByVerificationCode(String code);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy