일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- aws cli s3 exclude folder
- h2 intellij
- Jenkins
- Transactiona
- 선언적 트랜잭션
- h2 연동
- IAM MFA
- jpa 환경에서 json type 활용하기
- jenkins 배포
- json type index
- AWS IAM MFA
- in memory
- IAM이란
- json type 활용
- 프리티어 인스턴스
- 무료 인스턴스
- aws cli s3
- multi module
- 트랜잭션 전파속성
- aws cli s3 cp
- Oracle Linux 8
- jpa json type
- 멀티모듈
- mysql json type
- spring boot 멀티모듈
- aws cli s3 exclude directory
- server mode
- json type column 생성
- JSON type
- oracle cloud
- Today
- Total
목록jpa json type (2)
Chris Devlog

들어가며이전글 Mysql에서 Json type 활용하기(2)에서 findById를 통해 데이터를 재조회 하는 로직을 JpaRepository에 saveAndRefresh 함수를 추가함으로써 여러 엔티티에서도 코드 추가없이 사용할 수 있도록 설정을 추가해보겠습니다설정 추가하기1. BaseRepositoryimport org.springframework.data.jpa.repository.JpaRepository;import org.springframework.data.repository.NoRepositoryBean;@NoRepositoryBeanpublic interface BaseRepository extends JpaRepository { T saveAndRefresh(T entity);} 2. B..

들어가며이번 글에서는 Mysql에서 Json type 활용하기(1)에서 설정한 데이터를 기반으로 JPA와 연계하여 활용하는방법에 대해 이야기 해보겠습니다. # 현재 테이블 구조 Enity 설정 Type1. Map필드 추가 @JdbcTypeCode(SqlTypes.JSON) @Column(name = "json_data", columnDefinition = "json") private Map dataJson;사용 @Autowired JsonTest1Repository jsonTest1Repository; @Test void test2() throws JsonProcessingException { String json = "{\"key1\": \"value1\", \"key2\": 300..