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