inflearn logo
Khóa học

Khóa học

Chia sẻ kiến thức

Bài viết của taehyeong2240950

taehyeong2240950 taehyeong2240950

@taehyeong2240950

Số lượng đánh giá đã viết
-
Xếp hạng trung bình
-

Bài viết 2

Hỏi & Đáp

shell 을 사용할 때 질문 있습니다.

아 /bin/sh 에 있는것만 가능하군요. /usr/local/bin/ 에 등록된 외부 cli 명령어도 되는 줄 알았습니다. shell 을 사용하고 있었습니다.

Lượt thích
0
Số bình luận
3
Lượt xem
351

Hỏi & Đáp

QuerydslJpaRepository가 depreacted 됬는데요

안녕하세요. 답변 감사드립니다. 예제에 있던 MyRepository 를 @NoRepositoryBean public interface MyRepository T , ID extends Serializable> extends JpaRepository T , ID > , QuerydslPredicateExecutor T > { boolean contains ( T entity) ; } 위와 같이 바꿨습니다. 그리고 이를 사용하는 SimpleMyRepository 에서 public class SimpleMyRepository T , ID extends Serializable> extends SimpleJpaRepository T , ID > implements MyRepository T , ID > { private EntityManager entityManager ; public SimpleMyRepository (JpaEntityInformation T , ?> entityInformation , EntityManager entityManager , EntityManager entityManager1) { super (entityInformation , entityManager) ; this . entityManager = entityManager1 ; } @Override public boolean contains ( T entity) { return entityManager .contains(entity) ; } } 위와 같이 바꾸려는데 JpaRepository는 구현체인 SimpleJpaRepository 가 있는 반면, QuerydslPredicateExecutor 은 구현체가 없어서 위 함수들을 재정의 해줘야 하는것으로 보입니다. 구현체인 QuerydslJpaPredicateExecutor 를 SimpleMyRepository 에서 상속해야 할 것 같은데 하나만 상속이 되니 어떻게 해야 할지 잘 모르겠습니다.

Lượt thích
0
Số bình luận
3
Lượt xem
496