domain - lethaiduy/MY-SHOP GitHub Wiki

package trainee.domain;

import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import java.util.Set;

import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType;

import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter;

/**

  • Fbcompany generated by hbm2java */ @Entity @Table(name = "FBCOMPANY", schema = "MYCIM_SM") @NoArgsConstructor @AllArgsConstructor @Getter @Setter public class Fbcompany implements Serializable {

    private static final long serialVersionUID = 1155639679887063387L; @Id @Column(name = "ID", unique = true, nullable = false, length = 64) private String id; @Column(name = "COMPANY_ID", nullable = false, length = 64) private String companyId; @Column(name = "DESCRIPTION", nullable = false, length = 128) private String description; @Column(name = "MIRROR_OBJREF", nullable = false, length = 64) private String mirrorObjref; @Column(name = "CN_IDENT", length = 64) private String cnIdent; @Column(name = "CN_OBJREF", length = 64) private String cnObjref; @Temporal(TemporalType.TIMESTAMP) @Column(name = "CREATE_DT", nullable = false) private Date createDt; @Column(name = "CREATE_USER_IDENT", nullable = false, length = 64) private String createUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "UPDATE_DT", nullable = false) private Date updateDt; @Column(name = "UPDATE_USER_IDENT", nullable = false, length = 64) private String updateUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "CHKOUT_DT") private Date chkoutDt; @Column(name = "CHKOUT_USER_IDENT", length = 64) private String chkoutUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "CHKIN_DT") private Date chkinDt; @Column(name = "CHKIN_USER_IDENT", length = 64) private String chkinUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "ROLLBK_DT") private Date rollbkDt; @Column(name = "ROLLBK_USER_IDENT", length = 64) private String rollbkUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "REL_DT") private Date relDt; @Column(name = "REL_USER_IDENT", length = 64) private String relUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "ARCHIVED_DT") private Date archivedDt; @Column(name = "ARCHIVED_USER_IDENT", length = 64) private String archivedUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "RESTORED_DT") private Date restoredDt; @Column(name = "RESTORED_USER_IDENT", length = 64) private String restoredUserIdent; @Temporal(TemporalType.TIMESTAMP) @Column(name = "ACTION_DT") private Date actionDt; @Column(name = "ACTION_USER_IDENT", length = 64) private String actionUserIdent; @Column(name = "ACTION_EVTCD", length = 64) private String actionEvtcd; @Column(name = "CUR_SETUP_STATE", nullable = false, length = 18) private String curSetupState; @Column(name = "PERMISSION", nullable = false, length = 12) private String permission; @Column(name = "USERGRP_IDENT", length = 64) private String usergrpIdent; @Column(name = "USERGRP_OBJREF", length = 64) private String usergrpObjref; @Column(name = "OWNER_IDENT", nullable = false, length = 64) private String ownerIdent; @Column(name = "OWNER_OBJREF", nullable = false, length = 64) private String ownerObjref; @Column(name = "PERMISSION_READ", nullable = false, length = 12) private String permissionRead; @Column(name = "USERGRP_READ_IDENT", length = 64) private String usergrpReadIdent; @Column(name = "USERGRP_READ_OBJREF", length = 64) private String usergrpReadObjref; @Column(name = "PERMISSION_REL_DEL", nullable = false, length = 12) private String permissionRelDel; @Column(name = "USERGRP_REL_DEL_IDENT", length = 64) private String usergrpRelDelIdent; @Column(name = "USERGRP_REL_DEL_OBJREF", length = 64) private String usergrpRelDelObjref; @Column(name = "COMMENTS", length = 512) private String comments; @Column(name = "CUR_INWK_STATE", nullable = false, length = 12) private String curInwkState; @Column(name = "DELETE_RESERVED", nullable = false, precision = 22, scale = 0) private int deleteReserved; @Column(name = "BATCH_RELEASE", nullable = false, precision = 22, scale = 0) private BigDecimal batchRelease;

    @OneToMany @JoinColumn(name = "OWNER_OBJREF", referencedColumnName = "ID") private Set list;

    public void updateCompany(Fbcompany company) { this.companyId = company.companyId; this.description = company.description; this.mirrorObjref = company.mirrorObjref; this.cnIdent = company.cnIdent; this.cnObjref = company.cnObjref; this.createDt = company.createDt; this.createUserIdent = company.createUserIdent; this.updateDt = company.updateDt; this.updateUserIdent = company.updateUserIdent; this.chkoutDt = company.chkoutDt; this.chkoutUserIdent = company.chkoutUserIdent; this.chkinDt = company.chkinDt; this.chkinUserIdent = company.chkinUserIdent; this.rollbkDt = company.rollbkDt; this.rollbkUserIdent = company.rollbkUserIdent; this.relDt = company.relDt; this.relUserIdent = company.relUserIdent; this.archivedDt = company.archivedDt; this.archivedUserIdent = company.archivedUserIdent; this.restoredDt = company.restoredDt; this.restoredUserIdent = company.restoredUserIdent; this.actionDt = company.actionDt; this.actionUserIdent = company.actionUserIdent; this.actionEvtcd = company.actionEvtcd; this.curInwkState = company.curInwkState; this.curSetupState = company.curSetupState; this.permission = company.permission; this.usergrpIdent = company.usergrpIdent; this.usergrpObjref = company.usergrpObjref; this.ownerIdent = company.ownerIdent; this.ownerObjref = company.ownerObjref; this.permissionRead = company.permissionRead; this.usergrpReadIdent = company.usergrpReadIdent; this.usergrpReadObjref = company.usergrpReadObjref; this.permissionRelDel = company.permissionRelDel; this.usergrpRelDelIdent = company.usergrpRelDelIdent; this.usergrpRelDelObjref = company.usergrpRelDelObjref; this.comments = company.comments; this.deleteReserved = company.deleteReserved; this.batchRelease = company.batchRelease; }

}