/**
 * There are <a href="https://github.com/ketayao/keta-custom">keta-custom</a> code generation
 */
package com.sw.mes.yb.mcs.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
* @Author
* @Description 打码记录
* @Date: Create in
* @Modified By:
*/
@Data
@Entity
@Table(name="codeing_record")
@DynamicUpdate
@DynamicInsert
public class CodingRecord {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

	/**
	 * 圆棒编号
	 */
    @Column(length=30)
    private String sectionNo;

	/**
	 * 创建时间
	 */
    @Column(length=19)
	@Temporal(TemporalType.TIMESTAMP)
    private Date createDate;


	public CodingRecord() {
	}

	public CodingRecord(Long id) {
		this.id = id;
	}
}
