728x90
반응형

참고 사이트 : vladmihalcea/hypersistence-utils: The Hypersistence Utils library (previously known as Hibernate Types) gives you Spring and Hibernate utilities that can help you get the most out of your data access layer. (github.com)

 

GitHub - vladmihalcea/hypersistence-utils: The Hypersistence Utils library (previously known as Hibernate Types) gives you Sprin

The Hypersistence Utils library (previously known as Hibernate Types) gives you Spring and Hibernate utilities that can help you get the most out of your data access layer. - GitHub - vladmihalcea/...

github.com

 

1. build.gradle에 다음을 추가한다.

implementation 'io.hypersistence:hypersistence-utils-hibernate-60:3.3.2'

깃허브에서 hibernate 버전과 일치하는 의존성을 찾아야한다. ( 본인은 6 버전 )

 

2. Entity Class에서 정의한다.

@Type(JsonType.class)
    @Column(name="detail",columnDefinition = "json")
    private Map<String,String> detail = new HashMap<>();

 

728x90
반응형

+ Recent posts