|
|
@ -4,10 +4,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
import lombok.*;
|
|
|
|
import lombok.*;
|
|
|
|
import org.hibernate.annotations.DynamicInsert;
|
|
|
|
import org.hibernate.annotations.DynamicInsert;
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
|
|
|
import org.springframework.data.domain.Persistable;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
import javax.persistence.*;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* ID를 manual set 하는 경우
|
|
|
|
|
|
|
|
* Persistable 구현 필요 : persitance 처리시 신규인지 체크에 필요한 getId 와 isNew Override
|
|
|
|
|
|
|
|
*/
|
|
|
|
@Schema(name = "Tf680Main", description = "메인")
|
|
|
|
@Schema(name = "Tf680Main", description = "메인")
|
|
|
|
@Table(name = "tf680_main", schema = "", catalog = "")
|
|
|
|
@Table(name = "tf680_main", schema = "", catalog = "")
|
|
|
|
@Entity
|
|
|
|
@Entity
|
|
|
@ -17,9 +22,7 @@ import java.io.Serializable;
|
|
|
|
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
|
|
|
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
|
|
|
@Getter
|
|
|
|
@Getter
|
|
|
|
@Builder
|
|
|
|
@Builder
|
|
|
|
public class Tf680Main implements Serializable {
|
|
|
|
public class Tf680Main implements Persistable<Long> {
|
|
|
|
private static final long SerialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Id
|
|
|
|
@Id
|
|
|
|
@Schema(required = true, title = "메인코드", example = " ", description = "Input Description...")
|
|
|
|
@Schema(required = true, title = "메인코드", example = " ", description = "Input Description...")
|
|
|
|
@Column(name = "mm_code", nullable = false)
|
|
|
|
@Column(name = "mm_code", nullable = false)
|
|
|
@ -330,4 +333,13 @@ public class Tf680Main implements Serializable {
|
|
|
|
private String virtlacnutnoF;
|
|
|
|
private String virtlacnutnoF;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Long getId() {
|
|
|
|
|
|
|
|
return this.mmCode;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean isNew() {
|
|
|
|
|
|
|
|
return this.mmCode == 0L;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|