init
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.eactive.kakao.rolling;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.TableGenerator;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
|
||||
import com.eactive.eai.data.entity.AbstractEntity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)
|
||||
|
||||
@Entity
|
||||
@Table(name = "rolling_suffix")
|
||||
@org.hibernate.annotations.Table(appliesTo = "rolling_suffix", comment = "현재 commit id의 suffix를 매핑")
|
||||
public class RollingSuffix extends AbstractEntity<Long> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@TableGenerator(name = "RollingSuffix", table = "TSEAISQ01", initialValue = 1, allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.TABLE, generator = "RollingSuffix")
|
||||
private Long id;
|
||||
|
||||
private String commitId;
|
||||
|
||||
@Comment("테이블 suffix")
|
||||
private String suffix;
|
||||
|
||||
@CreatedDate
|
||||
private LocalDateTime createdDate;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user