删除 src/main/java/co/jp/app/repository/userRepository.java
This commit is contained in:
@ -1,18 +0,0 @@
|
|||||||
package co.jp.app.repository;
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.data.repository.query.Param;
|
|
||||||
|
|
||||||
import co.jp.app.entity.UserEntity;
|
|
||||||
|
|
||||||
public interface userRepository extends JpaRepository<UserEntity, Integer> {
|
|
||||||
|
|
||||||
public default UserEntity getByName(@Param("name") String name) {
|
|
||||||
return getByName(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
public default UserEntity getByEmail(@Param("email")String email) {
|
|
||||||
return getByEmail(email);
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user