DAY 06
IP range
https://www.postgresql.org/docs/devel/auth-pg-hba-conf.html
https://studyforus.tistory.com/137
@Autowired 애노테이션
https://galid1.tistory.com/512
DAY 11
static vs final
https://stackoverflow.com/questions/13772827/difference-between-static-and-final
DAY 16
The Joel Test: 12 Steps to Better Code – Joel on Software
https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/
쉘스크립트 기초 https://www.shellscript.sh/
https://kangsecu.tistory.com/54
DAY 30
Map과 HashMap의 차이?
Postgres 에서 jsonb 타입을 사용하기 위해
<!-- https://mvnrepository.com/artifact/com.vladmihalcea/hibernate-types-52 -->
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-52</artifactId>
<version>2.9.3</version>
</dependency>
dependency 를 추가해야했는데,
package com.회사.lab.tour.geolocation.model;
import com.couchbase.client.java.repository.annotation.Field;
import com.fasterxml.jackson.annotation.JsonView;
import com.interpark.lab.tour.geolocation.config.ViewJson;
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
import lombok.Data;
import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.TypeDefs;
import org.json.JSONObject;
import org.locationtech.jts.geom.Geometry;
import javax.persistence.*;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@Data
@Entity
@Table(name = "json_b_test_region_100_007")
@TypeDefs({
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
})
public class ExpediaRegionUnion {
@Id @GeneratedValue(strategy = GenerationType.AUTO)
private String region_id;
@Field("region_name")
@JsonView({ViewJson.Admin.class})
private String region_name;
@Field("region_type")
private String region_type;
@Type(type = "jsonb")
@Column(columnDefinition = "jsonb")
private HashMap jsonb;
@Type(type = "jsonb")
@Column(columnDefinition = "jsonb")
private HashMap es;
@Field("polygon")
private Geometry polygon;
@Field("created_at")
private Date createdAt;
@Field("updated_at")
private Date updatedAt;
}
위와같은 설정에서 HashMap을 Map으로 작성하니 실행이 되지 않았다. (https://stackoverflow.com/questions/50394856/spring-data-jpa-jpamappingcontext-error-illegalstateexception-expected-to-be) 이걸 보고 해결했지만, Map과 HashMap의 차이가 궁금해졌다.
DAY 31
그러고보니 JSONB가 뭔지 모름ㅋ http://json-b.net/index.html
https://developer.ibm.com/articles/j-javaee8-json-binding-4/
https://developer.ibm.com/articles/j-javaee8-json-binding-2/
https://developer.ibm.com/articles/j-javaee8-json-binding-3/
'월간' 카테고리의 다른 글
2020.02 / [월간] 공부 (0) | 2020.02.03 |
---|