This commit is contained in:
@@ -4,8 +4,6 @@ import com.eactive.eai.data.entity.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.EmbeddedId;
|
||||
@@ -17,8 +15,9 @@ import javax.persistence.Table;
|
||||
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)
|
||||
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
// @DynamicInsert 제거 : null이 아닌 컬럼만으로 INSERT SQL을 매번 새로 생성하므로
|
||||
// 행마다 SQL 문자열이 달라져 Hibernate JDBC 배치(batch_size)가 동작하지 않는다.
|
||||
// 로그 테이블은 항상 전체 컬럼을 INSERT 하므로 정적 SQL이 유리하다.
|
||||
@Table(name = "http_adapter_extra_log")
|
||||
@org.hibernate.annotations.Table(appliesTo = "http_adapter_extra_log", comment = "http 헤더 로그")
|
||||
public class HttpAdapterExtraLog extends AbstractEntity<HttpAdapterExtraLogId> {
|
||||
|
||||
Reference in New Issue
Block a user