taehyeong2240950
@taehyeong2240950
Reviews Written
-
Average Rating
-
Posts
Q&A
shell ์ ์ฌ์ฉํ ๋ ์ง๋ฌธ ์์ต๋๋ค.
์ /bin/sh ์ ์๋๊ฒ๋ง ๊ฐ๋ฅํ๊ตฐ์. /usr/local/bin/์ ๋ฑ๋ก๋ ์ธ๋ถ cli ๋ช ๋ น์ด๋ ๋๋ ์ค ์์์ต๋๋ค.shell ์ ์ฌ์ฉํ๊ณ ์์์ต๋๋ค.
- 0
- 3
- 329
Q&A
QuerydslJpaRepository๊ฐ depreacted ๋ฌ๋๋ฐ์
์๋ ํ์ธ์. ๋ต๋ณ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ์์ ์ ์๋ MyRepository ๋ฅผ @NoRepositoryBeanpublic interface MyRepositoryT, ID extends Serializable> extends JpaRepositoryT, ID>, QuerydslPredicateExecutorT> { boolean contains(T entity);} ์์ ๊ฐ์ด ๋ฐ๊ฟจ์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ์ด๋ฅผ ์ฌ์ฉํ๋ SimpleMyRepository ์์ public class SimpleMyRepositoryT, ID extends Serializable> extends SimpleJpaRepositoryT, ID> implements MyRepositoryT, ID> { private EntityManager entityManager; public SimpleMyRepository(JpaEntityInformationT, ?> 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 ์์ ์์ํด์ผ ํ ๊ฒ ๊ฐ์๋ฐ ํ๋๋ง ์์์ด ๋๋ ์ด๋ป๊ฒ ํด์ผ ํ ์ง ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
- 0
- 3
- 485




