Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 인프런
- 스프링 핵심 원리
- 스프링 핵심 기능
- Greedy
- Spring Boot
- 알고리즘
- pointcut
- jpa
- springdatajpa
- kotlin
- Thymeleaf
- JPQL
- Exception
- QueryDSL
- Proxy
- AOP
- 백준
- db
- SpringBoot
- java
- 스프링
- spring
- transaction
- Android
- 그리디
- 김영한
- JDBC
- http
- Servlet
- 자바
Archives
- Today
- Total
목록optional 반환 방법 (1)
개발자되기 프로젝트
공통 인터페이스 기능 : 순수 jpa기반 repository
1. 순수 JPA기반 Repository @Repository public class TeamRepository { @PersistenceContext private EntityManager em; public Team save(Team team){ em.persist(team); return team; } public void delete(Team team){ em.remove(team); } public List findAll(){ return em.createQuery("select t from Team t", Team.class).getResultList(); } public Optional findById(Long id){ Team findTeam = em.find(Team.class, id);..
인프런/[인프런] Spring Data JPA
2021. 8. 28. 00:07