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
- 톰캣
- spring camp
- tomcat
- spring-webmvc
- batch
- ORM
- Data REST
- Spring Data REST
- JUnit
- docker
- static inner class
- Spring Batch
- 코드 리뷰
- ApplicationPidFileWriter
- spring-mvc
- REST API
- SuperTypeToken
- spring boot tomcat
- Spring
- spring jpa
- Spring Data JPA
- spring pid
- JPA mapping
- spring batch 코드
- spring-webmvc #코드읽기
- spring bean
- IntelliJ
- JPA
- 세미나
- spring boot
Archives
- Today
- Total
목록2018/05/24 (1)
woniper
Spring Data JPA 같은 이름, 다른 type인 2개의 @Entity인 경우 주의 사항
가정 하나의 project에 의미가 다른 2개의 Event라는 @Entity가 필요하다. 당연히 package 경로는 다르다. 하나는 net.woniper.data.jpa.event1.Event (이하 event1) 하나는 net.woniper.data.jpa.event2.Event (이하 event2) package만 다르며, 클래스 명은 같다. 각각의 Event는 Repository가 존재한다. net.woniper.data.jpa.event1.EventRepository (이하 eventRepository1) net.woniper.data.jpa.event2.EventRepository (이하 eventRepository2) 예제 코드 net.woniper.data.jpa.event1.Event p..
Spring
2018. 5. 24. 12:30