@org.hibernate.annotations.UpdateTimestamp

Here are the examples of the java api @org.hibernate.annotations.UpdateTimestamp taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

133 Examples 7

19 Source : SysUserRole.java
with MIT License
from ZeroOrInfinity

/**
 * 用户角色
 * @author YongWu zheng
 * @version V1.0  Created by 2020-09-26 15:49
 */
@Data
@Table
@Enreplacedy
public clreplaced SysUserRole implements Serializable {

    private static final long serialVersionUID = -3201127172452753600L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    private Long userId;

    private Long roleId;

    @CreationTimestamp
    private Date createTime;

    @UpdateTimestamp
    private Date updateTime;
}

19 Source : SysUser.java
with MIT License
from ZeroOrInfinity

/**
 * 用户
 * @author YongWu zheng
 * @version V1.0  Created by 2020-09-26 15:47
 */
@SuppressWarnings("jol")
@Data
@Table(indexes = { @Index(name = "idx_username", columnList = "username", unique = true), @Index(name = "idx_mobile", columnList = "mobile", unique = true) })
@Enreplacedy
public clreplaced SysUser implements Serializable {

    private static final long serialVersionUID = 5552682183604767L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    private String username;

    private String preplacedword;

    private String nickname;

    private String mobile;

    /**
     * 权限, 多个权限用逗号分隔
     */
    private String authorities;

    private String email;

    private String qq;

    private Date birthday;

    /**
     * 性别: 1为男, 0为女, 其他未知
     */
    private Integer gender;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 用户类型: 超级管理员(2)、管理员(1)、普通用户(0)
     */
    private Integer userType;

    private String company;

    private String blog;

    private String location;

    /**
     * 用户来源, 如:'GITEE','WEIBO','QQ','WEIXIN'
     */
    private Integer source;

    /**
     * 第三方 uuid
     */
    private String uuid;

    /**
     * 隐私
     */
    private Integer privacy;

    /**
     * 通知:是否显示详情
     */
    private Integer notification;

    /**
     * 积分, 金币等类似的值
     */
    private Integer score;

    /**
     * 经验值
     */
    private Integer experience;

    private String regIp;

    private String lastLoginIp;

    private Date lastLoginTime;

    private Integer loginCount;

    private String remark;

    /**
     * 用户状态: 0 为 正常, 1 为删除
     */
    @Column(name = "status", columnDefinition = "tinyint(4) DEFAULT '0' COMMENT '用户状态: 0 为 正常, 1 为删除'")
    private Integer status;

    @CreationTimestamp
    private Date createTime;

    @UpdateTimestamp
    private Date updateTime;
}

19 Source : SysRoleResources.java
with MIT License
from ZeroOrInfinity

/**
 * 角色资源
 * @author YongWu zheng
 * @version V1.0  Created by 2020-09-26 15:46
 */
@Data
@IdClreplaced(SysRoleResourcesKey.clreplaced)
@Enreplacedy(name = "sys_role_resources")
@Table(name = "sys_role_resources", indexes = { @Index(name = "idx_role_id", columnList = "role_id") })
public clreplaced SysRoleResources implements Serializable {

    private static final long serialVersionUID = -4426152457773441387L;

    @Id
    @Column(name = "role_id")
    private Long roleId;

    @Id
    @Column(name = "resources_id")
    private Long resourcesId;

    @CreationTimestamp
    private Date createTime;

    @UpdateTimestamp
    private Date updateTime;
}

19 Source : SysRole.java
with MIT License
from ZeroOrInfinity

/**
 * 角色
 * @author YongWu zheng
 * @version V1.0  Created by 2020-09-26 15:44
 */
@Data
@Table
@Enreplacedy
public clreplaced SysRole implements Serializable {

    private static final long serialVersionUID = -2247129352211520649L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    private String name;

    private String description;

    private Boolean available;

    @CreationTimestamp
    private Date createTime;

    @UpdateTimestamp
    private Date updateTime;
}

19 Source : SysResources.java
with MIT License
from ZeroOrInfinity

/**
 * 资源
 * @author YongWu zheng
 * @version V1.0  Created by 2020-09-26 15:42
 */
@Data
@Table(indexes = { @Index(name = "idx_sys_resource_parent_id", columnList = "parentId") })
@Enreplacedy
public clreplaced SysResources implements Serializable {

    private static final long serialVersionUID = -4321862331623956112L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    private String name;

    /**
     * 如: 菜单, 按钮
     */
    private String type;

    /**
     * url
     */
    private String url;

    /**
     * 权限
     */
    private String permission;

    /**
     * 父菜单
     */
    private Long parentId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 是否在新标签打开
     */
    private Boolean external;

    private Boolean available;

    /**
     * 菜单图标
     */
    private String icon;

    @CreationTimestamp
    private Date createTime;

    @UpdateTimestamp
    private Date updateTime;
}

19 Source : BaseEntity.java
with GNU General Public License v3.0
from saltedge

/**
 * Base JPA Enreplacedy which implements base fields: ID, CREATEDAT, UPDATEDAT.
 * Use as parent clreplaced for all enreplacedies.
 */
@MappedSuperclreplaced
@EnreplacedyListeners(AuditingEnreplacedyListener.clreplaced)
abstract public clreplaced BaseEnreplacedy implements BaseEnreplacedyAbs {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @CreationTimestamp
    @Column(updatable = false)
    private Instant createdAt;

    @UpdateTimestamp
    @Column
    private Instant updatedAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Instant getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Instant createdAt) {
        this.createdAt = createdAt;
    }

    public Instant getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Instant updatedAt) {
        this.updatedAt = updatedAt;
    }
}

19 Source : BaseEnterpriseEntity.java
with MIT License
from rieckpil

@Data
@MappedSuperclreplaced
public clreplaced BaseEnterpriseEnreplacedy {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    private String internId;

    @CreationTimestamp
    private LocalDateTime createdAt;

    @UpdateTimestamp
    private LocalDateTime updatedAt;

    @PrePersist
    public void prePersist() {
        this.internId = String.valueOf(Math.abs(ThreadLocalRandom.current().nextInt()));
    }
}

19 Source : User.java
with MIT License
from PowerDos

/**
 * 用户
 */
@Enreplacedy
@Table(name = "user")
public clreplaced User {

    @Id
    @GeneratedValue(generator = "id")
    @GenericGenerator(name = "id", strategy = "native")
    private int // 用户id
    userid;

    // 用户名
    private String username;

    // 密码
    private String preplacedword;

    // 邮箱
    private String mail;

    // 手机
    private String phone;

    // 状态
    private int status;

    @Column(updatable = false, name = "create_at")
    @Temporal(TemporalType.TIMESTAMP)
    @CreationTimestamp
    private Date // 创建时间
    createAt;

    @Column(name = "update_at")
    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTimestamp
    private Date // 修改时间
    updateAt;

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPreplacedword() {
        return preplacedword;
    }

    public void setPreplacedword(String preplacedword) {
        this.preplacedword = preplacedword;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }
}

19 Source : Merchant.java
with MIT License
from PowerDos

/**
 * 商家
 */
@Enreplacedy
@Table(name = "merchant")
public clreplaced Merchant {

    // 唯一标识 ID
    @Id
    @GeneratedValue(generator = "id")
    @GenericGenerator(name = "id", strategy = "native")
    private int id;

    // 商家名称
    private String merchantName;

    // 店铺地址
    private String merchantPlace;

    // 店铺描述
    private String merchantDesc;

    // 后台登陆密码
    private String adminPreplaced;

    @Column(updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    @CreationTimestamp
    private Date createdAt;

    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTimestamp
    private Date updatedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getMerchantPlace() {
        return merchantPlace;
    }

    public void setMerchantPlace(String merchantPlace) {
        this.merchantPlace = merchantPlace;
    }

    public String getMerchantDesc() {
        return merchantDesc;
    }

    public void setMerchantDesc(String merchantDesc) {
        this.merchantDesc = merchantDesc;
    }

    public void setAdminPreplaced(String adminPreplaced) {
        this.adminPreplaced = adminPreplaced;
    }

    public String getAdminPreplaced() {
        return this.adminPreplaced;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
}

19 Source : QuestionEntity.java
with MIT License
from pengrobin

/**
 * @author pengbin
 * @version 1.0
 * @date 2020-04-07 23:16
 */
@Enreplacedy
@Table(name = "qa_question")
public clreplaced QuestionEnreplacedy {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private int sid;

    private String replacedle;

    private int creator;

    @CreationTimestamp
    @Column(name = "create_date")
    private Date createDate;

    @UpdateTimestamp
    @Column(name = "update_date")
    private Date updateDate;

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getreplacedle() {
        return replacedle;
    }

    public void setreplacedle(String replacedle) {
        this.replacedle = replacedle;
    }

    public int getCreator() {
        return creator;
    }

    public void setCreator(int creator) {
        this.creator = creator;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}

19 Source : QaQuestionEntity.java
with MIT License
from pengrobin

@Basic
@Column(name = "update_date")
@UpdateTimestamp
public Timestamp getUpdateDate() {
    return updateDate;
}

19 Source : Users.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by SEJI on 2018-02-20.
 */
@Enreplacedy
@Table(name = "users")
public clreplaced Users {

    @Id
    @Column(name = "id", nullable = false)
    private String id;

    @CreationTimestamp
    @Column(name = "created", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "lastmodified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastmodified;

    @Column(name = "version", nullable = false)
    private int version;

    @Column(name = "username", nullable = false)
    private String userName;

    @Column(name = "preplacedword", nullable = false)
    private String preplacedword;

    @Column(name = "email", nullable = false)
    private String email;

    @Column(name = "givenname", nullable = false)
    private String givenName;

    @Column(name = "familyname", nullable = false)
    private String familyName;

    @Column(name = "active", nullable = false)
    private String active;

    @Column(name = "phonenumber", nullable = false)
    private String phoneNumber;

    @Column(name = "authorities", nullable = false)
    private String authorities;

    @Column(name = "verified", nullable = false)
    private String verified;

    @Column(name = "origin", nullable = false)
    private String origin;

    @Column(name = "external_id", nullable = false)
    private String externalId;

    @Column(name = "idenreplacedy_zone_id", nullable = false)
    private String idenreplacedyZoneId;

    @Column(name = "salt", nullable = false)
    private String salt;

    @UpdateTimestamp
    @Column(name = "preplacedwd_lastmodified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date preplacedwdLastmodified;

    @Column(name = "legacy_verification_behavior", nullable = false)
    private String legacyVerification_behavior;

    @Column(name = "preplacedwd_change_required", nullable = false)
    private String preplacedwdChange_required;

    // 
    @Column(name = "last_logon_success_time", nullable = false)
    private BigInteger lastLogonSuccessTime;

    @Column(name = "previous_logon_success_time", nullable = false)
    private BigInteger previousLogonSuccessTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastmodified() {
        return lastmodified;
    }

    public void setLastmodified(Date lastmodified) {
        this.lastmodified = lastmodified;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPreplacedword() {
        return preplacedword;
    }

    public void setPreplacedword(String preplacedword) {
        this.preplacedword = preplacedword;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGivenName() {
        return givenName;
    }

    public void setGivenName(String givenName) {
        this.givenName = givenName;
    }

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getAuthorities() {
        return authorities;
    }

    public void setAuthorities(String authorities) {
        this.authorities = authorities;
    }

    public String getVerified() {
        return verified;
    }

    public void setVerified(String verified) {
        this.verified = verified;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getExternalId() {
        return externalId;
    }

    public void setExternalId(String externalId) {
        this.externalId = externalId;
    }

    public String getIdenreplacedyZoneId() {
        return idenreplacedyZoneId;
    }

    public void setIdenreplacedyZoneId(String idenreplacedyZoneId) {
        this.idenreplacedyZoneId = idenreplacedyZoneId;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getPreplacedwdLastmodified() {
        return preplacedwdLastmodified;
    }

    public void setPreplacedwdLastmodified(Date preplacedwdLastmodified) {
        this.preplacedwdLastmodified = preplacedwdLastmodified;
    }

    public String getLegacyVerification_behavior() {
        return legacyVerification_behavior;
    }

    public void setLegacyVerification_behavior(String legacyVerification_behavior) {
        this.legacyVerification_behavior = legacyVerification_behavior;
    }

    public String getPreplacedwdChange_required() {
        return preplacedwdChange_required;
    }

    public void setPreplacedwdChange_required(String preplacedwdChange_required) {
        this.preplacedwdChange_required = preplacedwdChange_required;
    }

    public BigInteger getLastLogonSuccessTime() {
        return lastLogonSuccessTime;
    }

    public void setLastLogonSuccessTime(BigInteger lastLogonSuccessTime) {
        this.lastLogonSuccessTime = lastLogonSuccessTime;
    }

    public BigInteger getPreviousLogonSuccessTime() {
        return previousLogonSuccessTime;
    }

    public void setPreviousLogonSuccessTime(BigInteger previousLogonSuccessTime) {
        this.previousLogonSuccessTime = previousLogonSuccessTime;
    }

    @Override
    public String toString() {
        return "Users{" + "id='" + id + '\'' + ", created=" + created + ", lastmodified=" + lastmodified + ", version=" + version + ", userName='" + userName + '\'' + ", preplacedword='" + preplacedword + '\'' + ", email='" + email + '\'' + ", givenName='" + givenName + '\'' + ", familyName='" + familyName + '\'' + ", active='" + active + '\'' + ", phoneNumber='" + phoneNumber + '\'' + ", authorities='" + authorities + '\'' + ", verified='" + verified + '\'' + ", origin='" + origin + '\'' + ", externalId='" + externalId + '\'' + ", idenreplacedyZoneId='" + idenreplacedyZoneId + '\'' + ", salt='" + salt + '\'' + ", preplacedwdLastmodified=" + preplacedwdLastmodified + ", legacyVerification_behavior='" + legacyVerification_behavior + '\'' + ", preplacedwdChange_required='" + preplacedwdChange_required + '\'' + ", lastLogonSuccessTime=" + lastLogonSuccessTime + ", previousLogonSuccessTime=" + previousLogonSuccessTime + '}';
    }
}

19 Source : StarterCategory.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by SEJI on 2018-03-06.
 */
@Enreplacedy
@Table(name = "starter_category")
public clreplaced StarterCategory {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "no", nullable = false)
    private int no;

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "clreplacedification", nullable = false)
    private String clreplacedification;

    @Column(name = "summary", nullable = false)
    private String summary;

    @Column(name = "description")
    private String description;

    @Column(name = "thumb_img_name")
    private String thumbImgName;

    @Column(name = "thumb_img_path")
    private String thumbImgPath;

    @Column(name = "use_yn", nullable = false)
    private String useYn;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @Column(name = "tags_param")
    private String tagsParam;

    @CreationTimestamp
    @Column(name = "created", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "lastmodified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastmodified;

    @Formula("(SELECT cd.value FROM code_detail cd WHERE cd.key = clreplacedification AND cd.group_id = 'STARTER_CATALOG')")
    private String clreplacedificationValue;

    @Formula("(SELECT cd.summary FROM code_detail cd WHERE cd.key = clreplacedification AND cd.group_id = 'STARTER_CATALOG')")
    private String clreplacedificationSummary;

    @Transient
    private int buildPackCategoryNo;

    @Transient
    private List<Integer> servicePackCategoryNoList;

    @Transient
    private String searchKeyword;

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClreplacedification() {
        return clreplacedification;
    }

    public void setClreplacedification(String clreplacedification) {
        this.clreplacedification = clreplacedification;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getThumbImgName() {
        return thumbImgName;
    }

    public void setThumbImgName(String thumbImgName) {
        this.thumbImgName = thumbImgName;
    }

    public String getThumbImgPath() {
        return thumbImgPath;
    }

    public void setThumbImgPath(String thumbImgPath) {
        this.thumbImgPath = thumbImgPath;
    }

    public String getUseYn() {
        return useYn;
    }

    public void setUseYn(String useYn) {
        this.useYn = useYn;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getLastmodified() {
        return lastmodified;
    }

    public void setLastmodified(Date lastmodified) {
        this.lastmodified = lastmodified;
    }

    public String getClreplacedificationValue() {
        return clreplacedificationValue;
    }

    public void setClreplacedificationValue(String clreplacedificationValue) {
        this.clreplacedificationValue = clreplacedificationValue;
    }

    public String getClreplacedificationSummary() {
        return clreplacedificationSummary;
    }

    public void setClreplacedificationSummary(String clreplacedificationSummary) {
        this.clreplacedificationSummary = clreplacedificationSummary;
    }

    public int getBuildPackCategoryNo() {
        return buildPackCategoryNo;
    }

    public void setBuildPackCategoryNo(int buildPackCategoryNo) {
        this.buildPackCategoryNo = buildPackCategoryNo;
    }

    public List<Integer> getServicePackCategoryNoList() {
        return servicePackCategoryNoList;
    }

    public void setServicePackCategoryNoList(List<Integer> servicePackCategoryNoList) {
        this.servicePackCategoryNoList = servicePackCategoryNoList;
    }

    public String getSearchKeyword() {
        return searchKeyword;
    }

    public void setSearchKeyword(String searchKeyword) {
        this.searchKeyword = searchKeyword;
    }

    public String getTagsParam() {
        return tagsParam;
    }

    public void setTagsParam(String tagsParam) {
        this.tagsParam = tagsParam;
    }

    @Override
    public String toString() {
        return "StarterCategory{" + "no=" + no + ", name='" + name + '\'' + ", clreplacedification='" + clreplacedification + '\'' + ", summary='" + summary + '\'' + ", description='" + description + '\'' + ", thumbImgName='" + thumbImgName + '\'' + ", thumbImgPath='" + thumbImgPath + '\'' + ", useYn='" + useYn + '\'' + ", userId='" + userId + '\'' + ", tagsParam='" + tagsParam + '\'' + ", created=" + created + ", lastmodified=" + lastmodified + ", clreplacedificationValue='" + clreplacedificationValue + '\'' + ", clreplacedificationSummary='" + clreplacedificationSummary + '\'' + ", buildPackCategoryNo=" + buildPackCategoryNo + ", servicePackCategoryNoList=" + servicePackCategoryNoList + ", searchKeyword='" + searchKeyword + '\'' + '}';
    }
}

19 Source : InviteUser.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by indra on 2018-06-05.
 */
@Enreplacedy
@Table(name = "invite_user")
public clreplaced InviteUser {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id", nullable = false)
    private int id;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @Column(name = "gubun", nullable = false)
    private String gubun;

    @Column(name = "role", nullable = false)
    private String role;

    @Column(name = "org_guid", nullable = false)
    private String orgGuid;

    @UpdateTimestamp
    @Column(name = "created", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @Column(name = "token", nullable = false)
    private String token;

    @Column(name = "invite_name", nullable = false)
    private String invitename;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getGubun() {
        return gubun;
    }

    public void setGubun(String gubun) {
        this.gubun = gubun;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getOrgGuid() {
        return orgGuid;
    }

    public void setOrgGuid(String orgGuid) {
        this.orgGuid = orgGuid;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getInviteName() {
        return this.invitename;
    }

    public void setInvitename(String invitename) {
        this.invitename = invitename;
    }

    @Override
    public String toString() {
        return "InviteUser{" + "id=" + id + ", userId='" + userId + '\'' + ", gubun='" + gubun + '\'' + ", role='" + role + '\'' + ", orgGuid='" + orgGuid + '\'' + ", created=" + created + ", token='" + token + '\'' + ", invitename='" + invitename + '\'' + '}';
    }
}

19 Source : CodeGroup.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by indra on 2018-02-23.
 */
@Enreplacedy
@Table(name = "code_group")
public clreplaced CodeGroup {

    @Id
    // @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private String id;

    @Column(name = "name")
    private String name;

    @CreationTimestamp
    @Column(name = "created", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "lastmodified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastmodified;

    @Transient
    private int pageNo;

    @Transient
    private int pageSize;

    @Transient
    private String procType;

    @Transient
    private String orgKey;

    @Transient
    private String orgId;

    @Transient
    private String searchKeyword;

    @Column(name = "user_id")
    private String userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getLastmodified() {
        return lastmodified;
    }

    public void setLastmodified(Date lastmodified) {
        this.lastmodified = lastmodified;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getProcType() {
        return procType;
    }

    public void setProcType(String procType) {
        this.procType = procType;
    }

    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getSearchKeyword() {
        return searchKeyword;
    }

    public void setSearchKeyword(String searchKeyword) {
        this.searchKeyword = searchKeyword;
    }
}

19 Source : CodeDetail.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by indra on 2018-02-23.
 */
@Enreplacedy
@Table(name = "code_detail")
public clreplaced CodeDetail {

    @Id
    // @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "no")
    private int no;

    @Column(name = "[key]", nullable = false)
    private String key;

    @Column(name = "[value]", nullable = false)
    private String value;

    @Column(name = "summary")
    private String summary;

    @Column(name = "group_id", nullable = false)
    private String groupId;

    @Column(name = "use_yn")
    private String useYn;

    @Column(name = "[order]")
    private int order;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @CreationTimestamp
    @Column(name = "created", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "lastmodified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastmodified;

    @Transient
    private int pageNo;

    @Transient
    private int pageSize;

    @Transient
    private String procType;

    @Transient
    private String orgKey;

    @Transient
    private String orgId;

    @Transient
    public int getValue2() {
        try {
            return Integer.parseInt(value);
        } catch (Exception e) {
            return 0;
        }
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getUseYn() {
        return useYn;
    }

    public void setUseYn(String useYn) {
        this.useYn = useYn;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getProcType() {
        return procType;
    }

    public void setProcType(String procType) {
        this.procType = procType;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getLastmodified() {
        return lastmodified;
    }

    public void setLastmodified(Date lastmodified) {
        this.lastmodified = lastmodified;
    }

    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Override
    public String toString() {
        return "CodeDetail{" + "no=" + no + ", key='" + key + '\'' + ", value='" + value + '\'' + ", summary='" + summary + '\'' + ", groupId='" + groupId + '\'' + ", useYn='" + useYn + '\'' + ", order=" + order + ", userId='" + userId + '\'' + ", created=" + created + ", lastmodified=" + lastmodified + ", pageNo=" + pageNo + ", pageSize=" + pageSize + ", procType='" + procType + '\'' + ", orgKey='" + orgKey + '\'' + ", orgId='" + orgId + '\'' + ", value2='" + getValue2() + '\'' + '}';
    }
}

19 Source : CatalogHistory.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by SEJI on 2018-03-06.
 */
@Enreplacedy
@Table(name = "catalog_history")
public clreplaced CatalogHistory {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "no", nullable = false)
    private int no;

    @Column(name = "catalog_no", nullable = false)
    private int catalogNo;

    @Column(name = "catalog_type", nullable = false)
    private String catalogType;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @UpdateTimestamp
    @Column(name = "created", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "lastmodified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastmodified;

    @Transient
    private String searchKeyword;

    @Transient
    private String searchTypeColumn;

    @Transient
    private String searchTypeUseYn;

    @Transient
    private int starterCatalogNo;

    @Transient
    private String name;

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public int getCatalogNo() {
        return catalogNo;
    }

    public void setCatalogNo(int catalogNo) {
        this.catalogNo = catalogNo;
    }

    public String getCatalogType() {
        return catalogType;
    }

    public void setCatalogType(String catalogType) {
        this.catalogType = catalogType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    public Date getLastmodified() {
        return lastmodified;
    }

    public void setLastmodified(Date lastmodified) {
        this.lastmodified = lastmodified;
    }

    public String getSearchKeyword() {
        return searchKeyword;
    }

    public void setSearchKeyword(String searchKeyword) {
        this.searchKeyword = searchKeyword;
    }

    public String getSearchTypeColumn() {
        return searchTypeColumn;
    }

    public void setSearchTypeColumn(String searchTypeColumn) {
        this.searchTypeColumn = searchTypeColumn;
    }

    public String getSearchTypeUseYn() {
        return searchTypeUseYn;
    }

    public void setSearchTypeUseYn(String searchTypeUseYn) {
        this.searchTypeUseYn = searchTypeUseYn;
    }

    public int getStarterCatalogNo() {
        return starterCatalogNo;
    }

    public void setStarterCatalogNo(int starterCatalogNo) {
        this.starterCatalogNo = starterCatalogNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Catalog{" + "no=" + no + ", catalogNo=" + catalogNo + ", catalogType=" + catalogType + ", userId='" + userId + '\'' + ", created=" + created + ", lastmodified=" + lastmodified + ", searchKeyword='" + searchKeyword + '\'' + ", searchTypeColumn='" + searchTypeColumn + '\'' + ", searchTypeUseYn='" + searchTypeUseYn + '\'' + ", starterCatalogNo=" + starterCatalogNo + ", name='" + name + '\'' + '}';
    }
}

19 Source : UsersCc.java
with Apache License 2.0
from PaaS-TA

@Enreplacedy
@Table(name = "users")
public clreplaced UsersCc {

    @Id
    @Column(name = "id")
    private int id;

    @Column(name = "guid")
    private String guid;

    @CreationTimestamp
    @Column(name = "created_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdAt;

    @UpdateTimestamp
    @Column(name = "updated_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedAt;

    @Column(name = "default_space_id")
    private String spaceid;

    @Column(name = "admin")
    private boolean admin;

    @Column(name = "active")
    private boolean active;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getSpaceid() {
        return spaceid;
    }

    public void setSpaceid(String spaceid) {
        this.spaceid = spaceid;
    }

    public boolean isAdmin() {
        return admin;
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return "UsersCc{" + "id=" + id + ", guid='" + guid + '\'' + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + ", spaceid='" + spaceid + '\'' + ", admin=" + admin + ", active=" + active + '}';
    }
}

19 Source : SpacesToCc.java
with Apache License 2.0
from PaaS-TA

@Table(name = "spaces")
public clreplaced SpacesToCc {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private Integer id;

    @Column(name = "guid", nullable = false)
    private String guid;

    @CreationTimestamp
    @Column(name = "created_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdAt;

    @UpdateTimestamp
    @Column(name = "updated_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedAt;

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "organization_id", nullable = false)
    private Integer organizationId;

    @Column(name = "space_quota_definition_id")
    private Integer spaceQuotaDefinitionId;

    @Column(name = "allow_ssh", columnDefinition = "TINYINT", length = 1)
    @Type(type = "org.hibernate.type.NumericBooleanType")
    private Boolean allowSsh;

    @Column(name = "isolation_segment_guid")
    private String isolationSegmentGuid;

    @Column(name = "space_id")
    private Integer spaceId;

    @Column(name = "user_id")
    private Integer userId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public Integer getSpaceQuotaDefinitionId() {
        return spaceQuotaDefinitionId;
    }

    public void setSpaceQuotaDefinitionId(Integer spaceQuotaDefinitionId) {
        this.spaceQuotaDefinitionId = spaceQuotaDefinitionId;
    }

    public Boolean getAllowSsh() {
        return allowSsh;
    }

    public void setAllowSsh(Boolean allowSsh) {
        this.allowSsh = allowSsh;
    }

    public String getIsolationSegmentGuid() {
        return isolationSegmentGuid;
    }

    public void setIsolationSegmentGuid(String isolationSegmentGuid) {
        this.isolationSegmentGuid = isolationSegmentGuid;
    }

    public Integer getSpaceId() {
        return spaceId;
    }

    public void setSpaceId(Integer spaceId) {
        this.spaceId = spaceId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}

19 Source : OrganizationsTolCc.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by indra on 2018-02-12.
 */
@Enreplacedy
@Table(name = "organizations")
public clreplaced OrganizationsTolCc {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private int id;

    @Column(name = "guid", nullable = false)
    private String guid;

    @CreationTimestamp
    @Column(name = "created_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdAt;

    @UpdateTimestamp
    @Column(name = "updated_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedAt;

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "billing_enabled", nullable = false)
    private Boolean billingEnabled;

    @Column(name = "quota_definition_id", nullable = false)
    private String quotaDefinitionId;

    @Column(name = "status")
    private String status;

    @Column(name = "default_isolation_segment_guid")
    private String defaultIsolationSegmentGuid;

    @Formula("COALESCE((SELECT COUNT(s.organization_id) FROM spaces s WHERE s.organization_id = id GROUP BY s.organization_id), 0)")
    private int spaceCount;

    @Formula("COALESCE((SELECT COUNT(a.id) FROM apps a WHERE a.space_guid IN (SELECT s.guid FROM spaces s WHERE s.organization_id = id)), 0)")
    private int applicationCount;

    @Formula("COALESCE((SELECT COUNT(*) FROM organizations_users ou WHERE ou.organization_id = id GROUP BY ou.organization_id), 0)")
    private int userCount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getBillingEnabled() {
        return billingEnabled;
    }

    public void setBillingEnabled(Boolean billingEnabled) {
        this.billingEnabled = billingEnabled;
    }

    public String getQuotaDefinitionId() {
        return quotaDefinitionId;
    }

    public void setQuotaDefinitionId(String quotaDefinitionId) {
        this.quotaDefinitionId = quotaDefinitionId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDefaultIsolationSegmentGuid() {
        return defaultIsolationSegmentGuid;
    }

    public void setDefaultIsolationSegmentGuid(String defaultIsolationSegmentGuid) {
        this.defaultIsolationSegmentGuid = defaultIsolationSegmentGuid;
    }

    public int getSpaceCount() {
        return spaceCount;
    }

    public void setSpaceCount(int spaceCount) {
        this.spaceCount = spaceCount;
    }

    public int getApplicationCount() {
        return applicationCount;
    }

    public void setApplicationCount(int applicationCount) {
        this.applicationCount = applicationCount;
    }

    public int getUserCount() {
        return userCount;
    }

    public void setUserCount(int userCount) {
        this.userCount = userCount;
    }
}

19 Source : CatalogCc.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by indra on 2018-02-08.
 */
@Enreplacedy
@Table(name = "routes")
public clreplaced CatalogCc {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private String id;

    @Column(name = "guid")
    private String guid;

    @CreationTimestamp
    @Column(name = "created_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdAt;

    @UpdateTimestamp
    @Column(name = "updated_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedAt;

    @Column(name = "host")
    private String host;

    @Column(name = "domain_id")
    private int domainid;

    @Column(name = "space_id")
    private int spaceid;

    @Column(name = "path")
    private String path;

    @Column(name = "port")
    private int port;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getDomainid() {
        return domainid;
    }

    public void setDomainid(int domainid) {
        this.domainid = domainid;
    }

    public int getSpaceid() {
        return spaceid;
    }

    public void setSpaceid(int spaceid) {
        this.spaceid = spaceid;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "CatalogCc{" + "id='" + id + '\'' + ", guid='" + guid + '\'' + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + ", host='" + host + '\'' + ", domainid=" + domainid + ", spaceid=" + spaceid + ", path='" + path + '\'' + ", port=" + port + '}';
    }
}

19 Source : QualityProfile.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by hrjin on 2017-06-26.
 */
@Enreplacedy
@Table(name = "quality_profile")
public clreplaced QualityProfile {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private long // pid
    id;

    @Column(name = "service_instances_id", nullable = false)
    private String serviceInstancesId;

    @Column(name = "quality_profile_id", nullable = false)
    private int // id -> qualityProfileId
    qualityProfileId;

    @Column(name = "quality_profile_name", nullable = false)
    private String // name -> qualityProfileName
    qualityProfileName;

    // @JsonProperty("key")
    @Column(name = "quality_profile_key", nullable = false)
    private String // sonarKey -> qualityProfileKey
    qualityProfileKey;

    @Column(name = "language", nullable = false)
    private String language;

    @Column(name = "language_name", nullable = false)
    private String languageName;

    @Column(name = "profile_default_yn", nullable = false)
    private String profileDefaultYn;

    @Column(name = "active_rule_count", nullable = false)
    private int activeRuleCount;

    @Column(name = "active_deprecated_rule_count", nullable = false)
    private int activeDeprecatedRuleCount;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    @Transient
    private String resultStatus;

    @Transient
    private List<Long> projectIdList;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getServiceInstancesId() {
        return serviceInstancesId;
    }

    public void setServiceInstancesId(String serviceInstancesId) {
        this.serviceInstancesId = serviceInstancesId;
    }

    public int getQualityProfileId() {
        return qualityProfileId;
    }

    public void setQualityProfileId(int qualityProfileId) {
        this.qualityProfileId = qualityProfileId;
    }

    public String getQualityProfileName() {
        return qualityProfileName;
    }

    public void setQualityProfileName(String qualityProfileName) {
        this.qualityProfileName = qualityProfileName;
    }

    public String getQualityProfileKey() {
        return qualityProfileKey;
    }

    public void setQualityProfileKey(String qualityProfileKey) {
        this.qualityProfileKey = qualityProfileKey;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getLanguageName() {
        return languageName;
    }

    public void setLanguageName(String languageName) {
        this.languageName = languageName;
    }

    public String getProfileDefaultYn() {
        return profileDefaultYn;
    }

    public void setProfileDefaultYn(String profileDefaultYn) {
        this.profileDefaultYn = profileDefaultYn;
    }

    public int getActiveRuleCount() {
        return activeRuleCount;
    }

    public void setActiveRuleCount(int activeRuleCount) {
        this.activeRuleCount = activeRuleCount;
    }

    public int getActiveDeprecatedRuleCount() {
        return activeDeprecatedRuleCount;
    }

    public void setActiveDeprecatedRuleCount(int activeDeprecatedRuleCount) {
        this.activeDeprecatedRuleCount = activeDeprecatedRuleCount;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getCreatedString() {
        return new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created);
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified);
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }

    public String getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }

    public List<Long> getProjectIdList() {
        return projectIdList;
    }

    public void setProjectIdList(List<Long> projectIdList) {
        this.projectIdList = projectIdList;
    }
}

19 Source : QualityGate.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by hrjin on 2017-06-22.
 */
@Enreplacedy
@Table(name = "quality_gate")
public clreplaced QualityGate {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private long // pid
    id;

    @Column(name = "service_instances_id", nullable = false)
    private String serviceInstancesId;

    // sonarqube에서 자동증가 되는 값을 리턴해주는데 이 값을 id 에 넣어줌.
    @Column(name = "quality_gate_id", nullable = false)
    private int // id -> qualityGateId
    qualityGateId;

    @Column(name = "quality_gate_name", nullable = false)
    private String // name -> qualityGateName
    qualityGateName;

    @Column(name = "gate_default_yn", nullable = false)
    private String gateDefaultYn;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    @Transient
    private List<Long> projectIdList;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getServiceInstancesId() {
        return serviceInstancesId;
    }

    public void setServiceInstancesId(String serviceInstancesId) {
        this.serviceInstancesId = serviceInstancesId;
    }

    public int getQualityGateId() {
        return qualityGateId;
    }

    public void setQualityGateId(int qualityGateId) {
        this.qualityGateId = qualityGateId;
    }

    public String getQualityGateName() {
        return qualityGateName;
    }

    public void setQualityGateName(String qualityGateName) {
        this.qualityGateName = qualityGateName;
    }

    public String getGateDefaultYn() {
        return gateDefaultYn;
    }

    public void setGateDefaultYn(String gateDefaultYn) {
        this.gateDefaultYn = gateDefaultYn;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getCreatedString() {
        return (created != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created) : null;
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return (lastModified != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified) : null;
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }

    public List<Long> getProjectIdList() {
        return projectIdList;
    }

    public void setProjectIdList(List<Long> projectIdList) {
        this.projectIdList = projectIdList;
    }
}

19 Source : Project.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by hrjin on 2017-06-23.
 */
@Enreplacedy
@Table(name = "sonar_project")
public clreplaced Project {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private long // pid
    id;

    @Column(name = "service_instances_id", nullable = false)
    private String serviceInstancesId;

    @Column(name = "pipeline_id", nullable = false)
    private int pipelineId;

    @Column(name = "job_id", nullable = false)
    private long jobId;

    // sonarqube에서 자동증가 되는 값을 리턴해주는데 이 값을 id 에 넣어줌.
    @Column(name = "project_id", nullable = false)
    private long // id -> projectId
    projectId;

    @Column(name = "project_name", nullable = false)
    private String projectName;

    // @JsonProperty("sonarKey")
    @Column(name = "project_key", nullable = false)
    private String // sonarqube의 key 값
    projectKey;

    @Column(name = "quality_profile_key", nullable = false)
    private String // key -> qualityProfileKey
    qualityProfileKey;

    @Column(name = "quality_gate_id", nullable = false)
    private int qualityGateId;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    @Transient
    private String resultStatus;

    // 프로젝트 연결상태
    @Transient
    private Boolean linked;

    @Transient
    private String gateDefaultYn;

    @Transient
    private String profileDefaultYn;

    @Formula("(SELECT concat((SELECT p.name FROM pipeline p WHERE p.id = sp.pipeline_id), '_', (SELECT j.job_name FROM job j WHERE j.id = sp.job_id)) FROM sonar_project sp WHERE sp.id = id)")
    private String projectViewName;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getServiceInstancesId() {
        return serviceInstancesId;
    }

    public void setServiceInstancesId(String serviceInstancesId) {
        this.serviceInstancesId = serviceInstancesId;
    }

    public int getPipelineId() {
        return pipelineId;
    }

    public void setPipelineId(int pipelineId) {
        this.pipelineId = pipelineId;
    }

    public long getJobId() {
        return jobId;
    }

    public void setJobId(long jobId) {
        this.jobId = jobId;
    }

    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(long projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectKey() {
        return projectKey;
    }

    public void setProjectKey(String projectKey) {
        this.projectKey = projectKey;
    }

    public String getQualityProfileKey() {
        return qualityProfileKey;
    }

    public void setQualityProfileKey(String qualityProfileKey) {
        this.qualityProfileKey = qualityProfileKey;
    }

    public int getQualityGateId() {
        return qualityGateId;
    }

    public void setQualityGateId(int qualityGateId) {
        this.qualityGateId = qualityGateId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getCreatedString() {
        return (created != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created) : null;
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return (lastModified != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified) : null;
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }

    public String getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }

    public Boolean getLinked() {
        return linked;
    }

    public void setLinked(Boolean linked) {
        this.linked = linked;
    }

    public String getGateDefaultYn() {
        return gateDefaultYn;
    }

    public void setGateDefaultYn(String gateDefaultYn) {
        this.gateDefaultYn = gateDefaultYn;
    }

    public String getProfileDefaultYn() {
        return profileDefaultYn;
    }

    public void setProfileDefaultYn(String profileDefaultYn) {
        this.profileDefaultYn = profileDefaultYn;
    }

    public String getProjectViewName() {
        return projectViewName;
    }

    public void setProjectViewName(String projectViewName) {
        this.projectViewName = projectViewName;
    }
}

19 Source : Pipeline.java
with Apache License 2.0
from PaaS-TA

/**
 * Created by user on 2017-05-16.
 */
@Enreplacedy
@Table(name = "pipeline")
public clreplaced Pipeline {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private Long id;

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "description")
    private String description;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "service_instances_id", nullable = true)
    @JsonIgnore
    private ServiceInstances serviceInstances;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    public Pipeline() {
    // DO NOTHING
    }

    public Pipeline(String name, String description, ServiceInstances serviceInstances) {
        this.name = name;
        this.description = description;
        this.serviceInstances = serviceInstances;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public ServiceInstances getServiceInstances() {
        return serviceInstances;
    }

    public void setServiceInstances(ServiceInstances serviceInstances) {
        this.serviceInstances = serviceInstances;
    }

    public String getCreatedString() {
        return new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created);
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified);
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }
}

19 Source : JobHistory.java
with Apache License 2.0
from PaaS-TA

/**
 * paastaDeliveryPipelineApi
 * paasta.delivery.pipeline.common.api.job.history
 *
 * @author REX
 * @version 1.0
 * @since 6/29/2017
 */
@Enreplacedy
@Table(name = "job_history")
public clreplaced JobHistory {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private long id;

    @Column(name = "job_id", nullable = false)
    private int jobId;

    @Column(name = "previous_job_number", nullable = false)
    private int previousJobNumber;

    @Column(name = "job_number", nullable = false)
    private int jobNumber;

    @Column(name = "duration")
    private long duration;

    @Column(name = "status", nullable = false)
    private String status;

    @Column(name = "file_id")
    private long fileId;

    @Column(name = "trigger_type")
    private String triggerType;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    @Formula("(SELECT j.job_name FROM job j WHERE j.pipeline_id = " + "(SELECT j1.pipeline_id FROM job j1 WHERE j1.id = " + "(SELECT jh1.job_id FROM job_history jh1 WHERE jh1.id = id))" + " AND j.group_order = (SELECT j3.group_order FROM job j3 WHERE j3.id = " + "(SELECT jh2.job_id FROM job_history jh2 WHERE jh2.id = id))" + " AND j.job_order = (SELECT j4.job_order - 1 FROM job j4 WHERE j4.id = " + "(SELECT jh3.job_id FROM job_history jh3 WHERE jh3.id = id)))")
    private String previousJobName;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    public int getPreviousJobNumber() {
        return previousJobNumber;
    }

    public void setPreviousJobNumber(int previousJobNumber) {
        this.previousJobNumber = previousJobNumber;
    }

    public int getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(int jobNumber) {
        this.jobNumber = jobNumber;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getFileId() {
        return fileId;
    }

    public void setFileId(long fileId) {
        this.fileId = fileId;
    }

    public String getTriggerType() {
        return triggerType;
    }

    public void setTriggerType(String triggerType) {
        this.triggerType = triggerType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getCreatedString() {
        return new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created);
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified);
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }

    public String getPreviousJobName() {
        return previousJobName;
    }

    public void setPreviousJobName(String previousJobName) {
        this.previousJobName = previousJobName;
    }
}

19 Source : CfUrl.java
with Apache License 2.0
from PaaS-TA

/**
 * deliveryPipelineApi
 * paasta.delivery.pipeline.common.api.domain.common.cf.url
 *
 * @author REX
 * @version 1.0
 * @since 11/6/2017
 */
@Enreplacedy
@Table(name = "cf_url")
public clreplaced CfUrl {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private long id;

    @Column(name = "service_instances_id", nullable = false)
    private String serviceInstancesId;

    @Column(name = "cf_api_name", nullable = false)
    private String cfApiName;

    @Column(name = "cf_api_url")
    private String cfApiUrl;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getServiceInstancesId() {
        return serviceInstancesId;
    }

    public void setServiceInstancesId(String serviceInstancesId) {
        this.serviceInstancesId = serviceInstancesId;
    }

    public String getCfApiName() {
        return cfApiName;
    }

    public void setCfApiName(String cfApiName) {
        this.cfApiName = cfApiName;
    }

    public String getCfApiUrl() {
        return cfApiUrl;
    }

    public void setCfApiUrl(String cfApiUrl) {
        this.cfApiUrl = cfApiUrl;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getCreatedString() {
        return (created != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created) : null;
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return (lastModified != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified) : null;
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }
}

19 Source : CfInfo.java
with Apache License 2.0
from PaaS-TA

/**
 * paastaDeliveryPipelineApi
 * paasta.delivery.pipeline.common.api.cfInfo
 *
 * @author REX
 * @version 1.0
 * @since 7/25/2017
 */
@Enreplacedy
@Table(name = "cf_info")
public clreplaced CfInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    private long id;

    @Column(name = "service_instances_id", nullable = false)
    private String serviceInstancesId;

    @Column(name = "cf_name", nullable = false)
    private String cfName;

    @Column(name = "cf_id", nullable = false)
    private String cfId;

    @Column(name = "cf_preplacedword", nullable = false)
    private String cfPreplacedword;

    @Column(name = "cf_api_url")
    private String cfApiUrl;

    @Column(name = "description")
    private String description;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @CreationTimestamp
    @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date created;

    @UpdateTimestamp
    @Column(name = "last_modified", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastModified;

    @Transient
    private String createdString;

    @Transient
    private String lastModifiedString;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getServiceInstancesId() {
        return serviceInstancesId;
    }

    public void setServiceInstancesId(String serviceInstancesId) {
        this.serviceInstancesId = serviceInstancesId;
    }

    public String getCfName() {
        return cfName;
    }

    public void setCfName(String cfName) {
        this.cfName = cfName;
    }

    public String getCfId() {
        return cfId;
    }

    public void setCfId(String cfId) {
        this.cfId = cfId;
    }

    public String getCfPreplacedword() {
        return cfPreplacedword;
    }

    public void setCfPreplacedword(String cfPreplacedword) {
        this.cfPreplacedword = cfPreplacedword;
    }

    public String getCfApiUrl() {
        return cfApiUrl;
    }

    public void setCfApiUrl(String cfApiUrl) {
        this.cfApiUrl = cfApiUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getCreatedString() {
        return (created != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(created) : null;
    }

    public void setCreatedString(String createdString) {
        this.createdString = createdString;
    }

    public String getLastModifiedString() {
        return (lastModified != null) ? new SimpleDateFormat(Constants.STRING_DATE_TYPE, Locale.KOREA).format(lastModified) : null;
    }

    public void setLastModifiedString(String lastModifiedString) {
        this.lastModifiedString = lastModifiedString;
    }
}

19 Source : WxArticleTemplate.java
with Apache License 2.0
from myxzjie

@Data
@Enreplacedy
@Table(name = "wx_article_template")
public clreplaced WxArticleTemplate extends BaseEnreplacedy<WxArticleTemplate> {

    /**
     * 主键 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    /**
     * 模板名称
     */
    @Column(name = "tpl_name")
    private String templateName;

    /**
     * 是否已上传微信
     */
    @Column(name = "publish")
    private Boolean publish;

    @Column(name = "media_id")
    private String mediaId;

    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    // @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @CreationTimestamp
    private LocalDateTime createDate;

    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    // @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @UpdateTimestamp
    private Date updateDate;

    @Override
    public void copy(WxArticleTemplate obj) {
        copyProperties(obj, this);
    }
    // @Transient
    // private String wxAccountName;//公众号名称
    // 
    // @Transient
    // private Integer countArticle;//图文数量
    // 
    // @Transient
    // private String isRelatedMenu;//是否已关联菜单
    // 
    // //权限过滤使用
    // @Transient
    // private boolean filterRole;//不过滤权限默认false,过滤权限true
    // @Transient
    // private String wxAccountIds;//权限过滤使用
}

19 Source : WxArticle.java
with Apache License 2.0
from myxzjie

@Data
@Enreplacedy
@Table(name = "wx_article")
public clreplaced WxArticle extends BaseEnreplacedy<WxArticle> {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    /**
     * 标题
     */
    private String replacedle;

    /**
     * 摘要
     */
    private String digest;

    /**
     * 作者
     */
    private String author;

    /**
     * 是否展示封面图片(0/1)
     */
    @Column(name = "is_cover", columnDefinition = "char")
    private String showCoverPic;

    /**
     * 上传微信,封面图片标识
     */
    @Column(name = "thumb_media_id")
    private String thumbMediaId;

    /**
     * 内容
     */
    @Column(name = "content", columnDefinition = "text")
    private String content;

    /**
     * 内容链接
     */
    @Column(name = "url")
    private String contentSourceUrl;

    /**
     * 文章排序
     */
    @Column(name = "sort")
    private Integer orderNo;

    /**
     * 图片路径
     */
    @Column(name = "image")
    private String image;

    /**
     * 图文ID
     */
    @Column(name = "news_id")
    private String newsId;

    @CreationTimestamp
    private LocalDateTime createDate;

    @UpdateTimestamp
    private LocalDateTime updateDate;

    @Column(name = "is_comment")
    private String needOpenComment;

    @Column(name = "is_fans_comment")
    private String onlyFansCanComment;

    @Override
    public void copy(WxArticle obj) {
        copyProperties(obj, this);
    }
}

19 Source : QiniuContent.java
with Apache License 2.0
from msh01

/**
 * 上传成功后,存储结果
 * @author Zheng Jie
 * @date 2018-12-31
 */
@Data
@Enreplacedy
@Table(name = "qiniu_content")
public clreplaced QiniuContent implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    // 文件名
    @Column(name = "name")
    private String key;

    // 空间名
    private String bucket;

    // 大小
    private String size;

    // 文件地址
    private String url;

    private String suffix;

    // 空间类型:公开/私有
    private String type = "公开";

    // 更新时间
    @UpdateTimestamp
    @Column(name = "update_time")
    private Timestamp updateTime;
}

19 Source : QiniuContent.java
with Apache License 2.0
from kick7788

/**
 * 上传成功后,存储结果
 *
 * @author billy
 * @date 2018-12-31
 */
@Data
@Enreplacedy
@Table(name = "qiniu_content")
public clreplaced QiniuContent implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    /**
     * 文件名
     */
    @Column(name = "name")
    private String key;

    /**
     * 空间名
     */
    private String bucket;

    /**
     * 大小
     */
    private String size;

    /**
     * 文件地址
     */
    private String url;

    private String suffix;

    /**
     * 空间类型:公开/私有
     */
    private String type = "公开";

    @UpdateTimestamp
    @Column(name = "update_time")
    private Timestamp updateTime;
}

19 Source : Music.java
with Apache License 2.0
from itning

/**
 * @author itning
 * @date 2020/9/5 11:08
 */
@Data
@Enreplacedy
@Table(name = "music", indexes = { @Index(name = "index_music_id", columnList = "music_id") })
public clreplaced Music {

    /**
     * 数据库主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private long id;

    /**
     * 音乐ID
     */
    @Column(name = "music_id", nullable = false, unique = true)
    private String musicId;

    /**
     * 音乐名
     */
    @Column(name = "name", nullable = false)
    private String name;

    /**
     * 歌手
     */
    @Column(name = "singer", nullable = false)
    private String singer;

    /**
     * 歌词ID
     */
    @Column(name = "lyric_id")
    private String lyricId;

    /**
     * 音乐类型
     * {@link top.itning.yunshunas.music.constant.MusicType}
     */
    @Column(name = "type", nullable = false)
    private int type;

    /**
     * 创建时间
     */
    @Column(nullable = false)
    @CreationTimestamp
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @Column(nullable = false)
    @UpdateTimestamp
    private Date gmtModified;
}

19 Source : UserFollow.java
with Apache License 2.0
from guzhigang001

/**
 * 工程名 : iTalker
 * 包名   : net.ggxiaozhi.web.italker.push.bean.db
 * 作者名 : 志先生_
 * 日期   : 2017/11
 * 功能   :用户关系Module,用于用户直接进行好友关系的实现(相当于中间表)
 */
// 表明为实体类
@Enreplacedy
// 对应数据库中的表
@Table(name = "TB_USER_FOLLOW")
public clreplaced UserFollow {

    // 标明字段含义
    @Id
    // 这是一个主键
    @PrimaryKeyJoinColumn
    // 主键生成存储类型为UUID
    @GeneratedValue(generator = "uuid")
    // 把uuid的生成器定义为uuid2,uuid2是将常规的uuid.toString,这样方便我们处理
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    // 列的约束:不允许更改,不允许为null
    @Column(updatable = false, nullable = false)
    private String id;

    // 定义一个发起人,你关注某人,这里就是你自己
    // 多对1->你可以关注很多人,你的每一条关注都是一条记录
    // 你可以创建很多关注的信息,所以是多对1
    // 这里的多对1是:User 对应多个UserFollow
    // optional 不可选,必须存储,一条关注记录一定要有一个"你"
    // optional属性是定义该关联类是否必须存在,值为false 时,关联类双方都必须存在
    @ManyToOne(optional = false)
    // 在多对一中使用@JoinColumn会存储关联表中的某一字段而不是保存整个User表的所有字段
    // @JoinColumn会默认引用User表中的主键作为自己的外键
    // 定义关联表的字段为originId对应的就是User表的Id字段
    // 定义的是数据库的存储字段(默认为origin_User表中的主键)
    @JoinColumn(name = "originId")
    private User origin;

    // 那这个列提取到我们的Module中,不允许为null,不允许更新,插入
    @Column(nullable = false, updatable = false, insertable = false)
    private String originId;

    // 定义被关注的目标,你关注的人
    // 也是多对1,你可以被很多人关注,每次关注都是一条记录
    // 所以就是,多个UserFollow对应 一个User的情况
    @ManyToOne(optional = false)
    @JoinColumn(name = "targetId")
    private User target;

    // 那这个列提取到我们的Module中,不允许为null,不允许更新,插入
    @Column(nullable = false, updatable = false, insertable = false)
    private String targetId;

    // 别名 也就是target的备注名
    private String alias;

    // 定义为创建时间戳 在创建时就写入
    @CreationTimestamp
    @Column(nullable = false)
    private LocalDateTime createAt = LocalDateTime.now();

    // 定义为更新时间戳 在创建时就写入
    @UpdateTimestamp
    @Column(nullable = false)
    private LocalDateTime updateAt = LocalDateTime.now();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getOrigin() {
        return origin;
    }

    public void setOrigin(User origin) {
        this.origin = origin;
    }

    public String getOriginId() {
        return originId;
    }

    public void setOriginId(String originId) {
        this.originId = originId;
    }

    public User getTarget() {
        return target;
    }

    public void setTarget(User target) {
        this.target = target;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }
}

19 Source : PushHistory.java
with Apache License 2.0
from guzhigang001

/**
 * 工程名 : iTalker
 * 包名   : net.ggxiaozhi.web.italker.push.bean.db
 * 作者名 : 志先生_
 * 日期   : 2017/11
 * 功能   : 消息推送历史记录表
 */
// 表明为实体类
@Enreplacedy
// 对应数据库中的表
@Table(name = "TB_PUSH_HISTORY")
public clreplaced PushHistory {

    // 标明字段含义
    @Id
    // 这是一个主键
    @PrimaryKeyJoinColumn
    // 主键生成存储类型为UUID
    @GeneratedValue(generator = "uuid")
    // 把uuid的生成器定义为uuid2,uuid2是将常规的uuid.toString,这样方便我们处理
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    // 列的约束:不允许更改,不允许为null
    @Column(updatable = false, nullable = false)
    private String id;

    // 推送的具体实体储存都是JSON字符串
    // BLOB 是比TEXT更多的一个大字段类型
    // @Lob注解表示属性将被持久化为Blob或者Clob类型
    @Lob
    @Column(nullable = false, columnDefinition = "BLOB")
    private String enreplacedy;

    // 推送的实体类型(区分推送的目标是群还是用户)
    @Column(nullable = false)
    private int enreplacedyType;

    // 接收者
    // 接收者不允许为空
    // 一个接受者可以接收很多推送消息
    @ManyToOne(optional = false, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
    @JoinColumn(name = "receiverId")
    private User receiver;

    @Column(nullable = false, updatable = false, insertable = false)
    private String receiverId;

    // 发送者
    // 发送者可为空,因为可能是系统消息
    // 一个发送者可以发送很多推送消息
    @ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
    @JoinColumn(name = "senderId")
    private User sender;

    @Column(updatable = false, insertable = false)
    private String senderId;

    // 接收者当前状态下的设备ID
    // 对应User.pushId 可以为null
    @Column
    private String receiverPushId;

    // 定义为创建时间戳 在创建时就写入
    @CreationTimestamp
    @Column(nullable = false)
    private LocalDateTime createAt = LocalDateTime.now();

    // 定义为更新时间戳 在创建时就写入
    @UpdateTimestamp
    @Column(nullable = false)
    private LocalDateTime updateAt = LocalDateTime.now();

    // 消息送达的时间,可为null
    @Column
    private LocalDateTime arrivalAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEnreplacedy() {
        return enreplacedy;
    }

    public void setEnreplacedy(String enreplacedy) {
        this.enreplacedy = enreplacedy;
    }

    public int getEnreplacedyType() {
        return enreplacedyType;
    }

    public void setEnreplacedyType(int enreplacedyType) {
        this.enreplacedyType = enreplacedyType;
    }

    public User getReceiver() {
        return receiver;
    }

    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public User getSender() {
        return sender;
    }

    public void setSender(User sender) {
        this.sender = sender;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverPushId() {
        return receiverPushId;
    }

    public void setReceiverPushId(String receiverPushId) {
        this.receiverPushId = receiverPushId;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public LocalDateTime getArrivalAt() {
        return arrivalAt;
    }

    public void setArrivalAt(LocalDateTime arrivalAt) {
        this.arrivalAt = arrivalAt;
    }
}

19 Source : Message.java
with Apache License 2.0
from guzhigang001

/**
 * 工程名 : iTalker
 * 包名   : net.ggxiaozhi.web.italker.push.bean.db
 * 作者名 : 志先生_
 * 日期   : 2017/11
 * 功能   :发送消息的Module 这里用户(User)发送给群或是一个用户(User)
 */
// 表明为实体类
@Enreplacedy
// 对应数据库中的表
@Table(name = "TB_MESSAGE")
public clreplaced Message {

    // 发送给人
    public static final int RECEIVER_TYPR_NONE = 1;

    // 发送给群
    public static final int RECEIVER_TYPR_GROUP = 2;

    /**
     * 发送消息的类型
     */
    // 文本类型
    public static final int TYPE_STR = 1;

    // 图片类型
    public static final int TYPE_PIC = 2;

    // 文件类型
    public static final int TYPE_FILE = 3;

    // 语音类型
    public static final int TYPE_AUDIO = 4;

    // 标明字段含义
    @Id
    // 这是一个主键
    @PrimaryKeyJoinColumn
    // 这里我们不自动生成UUID,id由代码写入,由客户端负责生成
    // 这样可以避免复杂的服务器和客户端的映射关系
    // @GeneratedValue(generator = "uuid")//主键生成存储类型为UUID
    // 把uuid的生成器定义为uuid2,uuid2是将常规的uuid.toString,这样方便我们处理
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    // 列的约束:不允许更改,不允许为null
    @Column(updatable = false, nullable = false)
    private String id;

    // 输入消息的内容,不允许为空,类型为文本
    @Column(nullable = false, columnDefinition = "TEXT")
    private String content;

    // 附件
    @Column
    private String attach;

    // 消息的类型
    @Column(nullable = false)
    private int type;

    // 定义为创建时间戳 在创建时就写入
    @CreationTimestamp
    @Column(nullable = false)
    private LocalDateTime createAt = LocalDateTime.now();

    // 定义为更新时间戳 在创建时就写入
    @UpdateTimestamp
    @Column(nullable = false)
    private LocalDateTime updateAt = LocalDateTime.now();

    // 发送者 不可为空
    // 多个消息对应一个发送者
    @JoinColumn(name = "senderId")
    @ManyToOne(optional = false)
    private User sender;

    // 这个字段仅仅是只是为了对应sender的数据库字段中的senderId
    // 不允许手动更新或插入
    @Column(nullable = false, updatable = false, insertable = false)
    private String senderId;

    // 接受者 可为空
    // 多个消息对应一个User
    @JoinColumn(name = "receiverId")
    // 这里不设置optional 因为接受者可能是用户也可能是群组
    @ManyToOne
    private User receiver;

    // 这个字段仅仅是只是为了对应receiver的数据库字段中的senderId
    // 不允许手动更新或插入
    @Column(updatable = false, insertable = false)
    private String receiverId;

    // 一个群可以接受多个消息
    @JoinColumn(name = "groupId")
    // 这里不设置optional 因为接受者可能是用户也可能是群组
    @ManyToOne
    private Group group;

    // 这个字段仅仅是只是为了对应group的数据库字段中的groupId
    // 不允许手动更新或插入
    @Column(updatable = false, insertable = false)
    private String groupId;

    public Message() {
    }

    // 发送给人的消息
    public Message(User sender, User receiver, MessageCreateModel model) {
        this.id = model.getId();
        this.content = model.getContent();
        this.type = model.getType();
        this.attach = model.getAttach();
        this.sender = sender;
        this.receiver = receiver;
    }

    // 发送给群的消息
    public Message(User sender, Group group, MessageCreateModel model) {
        this.id = model.getId();
        this.content = model.getContent();
        this.type = model.getType();
        this.attach = model.getAttach();
        this.sender = sender;
        this.group = group;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public User getSender() {
        return sender;
    }

    public void setSender(User sender) {
        this.sender = sender;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public User getReceiver() {
        return receiver;
    }

    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
}

19 Source : GroupMember.java
with Apache License 2.0
from guzhigang001

/**
 * 工程名 : iTalker
 * 包名   : net.ggxiaozhi.web.italker.push.bean.db
 * 作者名 : 志先生_
 * 日期   : 2017/11
 * 功能   :群成员module(这个类属于Group与User之间多对多关系的简化 转换成多对一)
 */
@Enreplacedy
@Table(name = "TB_GROUP_MEMBER")
public clreplaced GroupMember {

    // 默认权限,普通成员
    public static final int PERMISSION_TYPE_NONE = 0;

    // 管理员
    public static final int PERMISSION_TYPE_ADMIN = 1;

    // 创建者
    public static final int PERMISSION_TYPE_ADMIN_SU = 100;

    // 默认不接收消息
    public static final int NOTIFY_LEVEL_INVALID = -1;

    // 默认通知级别
    public static final int NOTIFY_LEVEL_NONE = 0;

    // 接收消息不提示
    public static final int NOTIFY_LEVEL_CLOSE = 1;

    // 标明字段含义
    @Id
    // 这是一个主键
    @PrimaryKeyJoinColumn
    // 主键生成存储类型为UUID
    @GeneratedValue(generator = "uuid")
    // 把uuid的生成器定义为uuid2,uuid2是将常规的uuid.toString,这样方便我们处理
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    // 列的约束:不允许更改,不允许为null
    @Column(updatable = false, nullable = false)
    private String id;

    // 别名
    @Column
    private String alias;

    // 消息通知级别
    @Column(nullable = false)
    private int notifyLevel = NOTIFY_LEVEL_NONE;

    // 成员权限类型
    @Column(nullable = false)
    private int permissionType = PERMISSION_TYPE_NONE;

    // 定义为创建时间戳 在创建时就写入
    @CreationTimestamp
    @Column(nullable = false)
    private LocalDateTime createAt = LocalDateTime.now();

    // 定义为更新时间戳 在创建时就写入
    @UpdateTimestamp
    @Column(nullable = false)
    private LocalDateTime updateAt = LocalDateTime.now();

    // 成员信息对应的用户信息
    @JoinColumn(name = "userId")
    // FetchType.EAGER加载(因为已经查询GroupMember表就表示想查询用户信息 群->GroupMember->用户信息)
    @ManyToOne(optional = false, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
    private User user;

    @Column(nullable = false, updatable = false, insertable = false)
    private String userId;

    // 成员信息对应的群信息
    @JoinColumn(name = "groupId")
    // FetchType.EAGER加载(因为已经查询GroupMember表就表示想查询群信息 用户->GroupMember->群)
    @ManyToOne(optional = false, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
    private Group group;

    @Column(nullable = false, updatable = false, insertable = false)
    private String groupId;

    public GroupMember() {
    }

    public GroupMember(User user, Group group) {
        this.user = user;
        this.group = group;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public int getNotifyLevel() {
        return notifyLevel;
    }

    public void setNotifyLevel(int notifyLevel) {
        this.notifyLevel = notifyLevel;
    }

    public int getPermissionType() {
        return permissionType;
    }

    public void setPermissionType(int permissionType) {
        this.permissionType = permissionType;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
}

19 Source : Todo.java
with Apache License 2.0
from gudaoxuri

/**
 * To-do enreplacedy.
 *
 * @author gudaoxuri
 */
@Enreplacedy
public clreplaced Todo extends IdEnreplacedy {

    @Column
    private String content;

    @CreationTimestamp
    @Temporal(TemporalType.TIMESTAMP)
    @Column
    private Date createTime;

    @UpdateTimestamp
    @Temporal(TemporalType.TIMESTAMP)
    @Column
    private Date updateTime;

    @Column
    private long sort;

    /**
     * Gets content.
     *
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * Sets content.
     *
     * @param content the content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * Gets create time.
     *
     * @return the create time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Gets update time.
     *
     * @return the update time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * Sets update time.
     *
     * @param updateTime the update time
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * Gets sort.
     *
     * @return the sort
     */
    public long getSort() {
        return sort;
    }

    /**
     * Sets sort.
     *
     * @param sort the sort
     */
    public void setSort(long sort) {
        this.sort = sort;
    }
}

19 Source : User.java
with Apache License 2.0
from givanthak

/**
 * The type User.
 *
 * @author Givantha Kalansuriya
 */
@Enreplacedy
@Table(name = "users")
@EnreplacedyListeners(AuditingEnreplacedyListener.clreplaced)
public clreplaced User {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    @Column(name = "first_name", nullable = false)
    private String firstName;

    @Column(name = "last_name", nullable = false)
    private String lastName;

    @Column(name = "email_address", nullable = false)
    private String email;

    @CreationTimestamp
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created_at", nullable = false)
    private Date createdAt;

    @Column(name = "created_by", nullable = false)
    @CreatedBy
    private String createdBy;

    @UpdateTimestamp
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "updated_at", nullable = false)
    private Date updatedAt;

    @Column(name = "updated_by", nullable = false)
    @LastModifiedBy
    private String updatedBy;

    /**
     * Gets id.
     *
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * Gets first name.
     *
     * @return the first name
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * Sets first name.
     *
     * @param firstName the first name
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /**
     * Gets last name.
     *
     * @return the last name
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * Sets last name.
     *
     * @param lastName the last name
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * Gets email.
     *
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Sets email.
     *
     * @param email the email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Gets created at.
     *
     * @return the created at
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * Sets created at.
     *
     * @param createdAt the created at
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * Gets created by.
     *
     * @return the created by
     */
    public String getCreatedBy() {
        return createdBy;
    }

    /**
     * Sets created by.
     *
     * @param createdBy the created by
     */
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * Gets updated at.
     *
     * @return the updated at
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * Sets updated at.
     *
     * @param updatedAt the updated at
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * Gets updated by.
     *
     * @return the updated by
     */
    public String getUpdatedBy() {
        return updatedBy;
    }

    /**
     * Sets updated by.
     *
     * @param updatedBy the updated by
     */
    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "User{" + "id=" + id + ", firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + ", email='" + email + '\'' + ", createdAt=" + createdAt + ", createdBy='" + createdBy + '\'' + ", updatedAt=" + updatedAt + ", updatedby='" + updatedBy + '\'' + '}';
    }
}

19 Source : BasePersistentObject.java
with Apache License 2.0
from etrace-io

// MappedSuperclreplaced https://docs.spring.io/spring-data/jpa/docs/2.3.1.RELEASE/reference/html/#dependencies
@MappedSuperclreplaced
@Data
@EqualsAndHashCode
public abstract clreplaced BasePersistentObject implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    private Long id;

    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTimestamp
    private Date updatedAt;

    @Temporal(TemporalType.TIMESTAMP)
    @CreationTimestamp
    private Date createdAt;
}

19 Source : BaseEntity.java
with Apache License 2.0
from ehabqadah

/**
 * <p> Root enreplacedy for object persistence via JPA.</p>
 *
 * @author Ehab Qadah
 */
@MappedSuperclreplaced
public abstract clreplaced BaseEnreplacedy {

    @Id
    @GeneratedValue(generator = "custom-generator", strategy = GenerationType.IDENreplacedY)
    @GenericGenerator(name = "custom-generator", strategy = "com.qadah.demo.data.model.id.generator.BaseIdentifierGenerator")
    protected String id;

    @CreationTimestamp
    @Column(name = "created_at", updatable = false, nullable = false)
    protected Instant createdAt;

    @UpdateTimestamp
    @Column(name = "modified_at")
    protected Instant modifiedAt;

    @Column
    @Version
    protected int version;

    /**
     * Indicates whether the object has already been persisted or not
     *
     * @return true if the object has not yet been persisted
     */
    public boolean isNew() {
        return getId() == null;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public Instant getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Instant createdAt) {
        this.createdAt = createdAt;
    }

    public Instant getModifiedAt() {
        return modifiedAt;
    }

    public void setModifiedAt(Instant modifiedAt) {
        this.modifiedAt = modifiedAt;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return id;
    }
}

19 Source : ValueSetModel.java
with Apache License 2.0
from drajer-health

// @Enreplacedy - No need to persist.
@Table(name = "valueset")
@TypeDef(name = "StringJsonObject", typeClreplaced = JSONObjectUserType.clreplaced)
public clreplaced ValueSetModel {

    @Id
    @Column(name = "id")
    private String valueSetId;

    @Column(name = "data", columnDefinition = "TEXT")
    private String data;

    @Column(name = "last_updated_ts")
    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTimestamp
    private Date timestamp;

    public String getValueSetId() {
        return valueSetId;
    }

    public void setValueSetId(String valueSetId) {
        this.valueSetId = valueSetId;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }
}

19 Source : ConsentEntity.java
with Creative Commons Zero v1.0 Universal
from CMSgov

@Enreplacedy(name = "consent")
public clreplaced ConsentEnreplacedy implements Serializable {

    public static final String CATEGORY_LOINC_CODE = "64292-6";

    public static final String CATEGORY_DISPLAY = "Release of information consent Doreplacedent";

    public static final String OPT_IN = "OPTIN";

    public static final String OPT_OUT = "OPTOUT";

    public static final String TREATMENT = "TREAT";

    public static final String SCOPE_CODE = "patient-privacy";

    private static final long serialVersionUID = 8702499693412507926L;

    public enum SourceCode {

        ETL_1800("1-800"), DPC("DPC");

        private final String code;

        private static final Map<String, SourceCode> stringToCode = Stream.of(values()).collect(toMap(Object::toString, e -> e));

        SourceCode(String code) {
            this.code = code;
        }

        public static SourceCode fromString(String code) {
            // consider returning Optional?
            return stringToCode.get(code);
        }

        @Override
        public String toString() {
            return code;
        }
    }

    public ConsentEnreplacedy() {
    // Hibernate required
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id", updatable = false, nullable = false, columnDefinition = "uuid")
    private UUID id;

    @Column(name = "mbi")
    private String mbi;

    @Column(name = "hicn")
    private String hicn;

    @Column(name = "bfd_patient_id")
    private String bfdPatientId;

    @NotNull
    @Column(name = "effective_date", columnDefinition = "DATE")
    private LocalDate effectiveDate;

    @Column(name = "policy_code")
    private String policyCode;

    @Column(name = "purpose_code")
    private String purposeCode;

    @Column(name = "loinc_code")
    private String loincCode;

    @Column(name = "scope_code")
    private String scopeCode;

    @Column(name = "created_at", columnDefinition = "TIMESTAMP WITH TIME ZONE")
    @CreationTimestamp
    private OffsetDateTime createdAt;

    @Column(name = "updated_at", columnDefinition = "TIMESTAMP WITH TIME ZONE")
    @UpdateTimestamp
    private OffsetDateTime updatedAt;

    @Column(name = "source_code")
    private String sourceCode;

    public UUID getId() {
        return id;
    }

    public void setId(UUID id) {
        this.id = id;
    }

    public String getMbi() {
        return mbi;
    }

    public void setMbi(String mbi) {
        this.mbi = mbi;
    }

    public String getHicn() {
        return hicn;
    }

    public void setHicn(String hicn) {
        this.hicn = hicn;
    }

    public String getBfdPatientId() {
        return bfdPatientId;
    }

    public void setBfdPatientId(String bfdPatientId) {
        this.bfdPatientId = bfdPatientId;
    }

    public LocalDate getEffectiveDate() {
        return effectiveDate;
    }

    public void setEffectiveDate(LocalDate effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public String getPolicyCode() {
        return policyCode;
    }

    public void setPolicyCode(String policyCode) {
        this.policyCode = policyCode;
    }

    public String getPurposeCode() {
        return purposeCode;
    }

    public void setPurposeCode(String purposeCode) {
        this.purposeCode = purposeCode;
    }

    public String getLoincCode() {
        return loincCode;
    }

    public void setLoincCode(String loincCode) {
        this.loincCode = loincCode;
    }

    public String getScopeCode() {
        return scopeCode;
    }

    public void setScopeCode(String scopeCode) {
        this.scopeCode = scopeCode;
    }

    public OffsetDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(OffsetDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public OffsetDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(OffsetDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public static ConsentEnreplacedy defaultConsentEnreplacedy(Optional<UUID> id, Optional<String> hicn, Optional<String> mbi) {
        ConsentEnreplacedy ce = new ConsentEnreplacedy();
        ce.setId(UUID.randomUUID());
        id.ifPresent(ce::setId);
        ce.setCreatedAt(OffsetDateTime.now(ZoneId.of("UTC")));
        ce.setEffectiveDate(LocalDate.now(ZoneId.of("UTC")));
        ce.setUpdatedAt(OffsetDateTime.now(ZoneId.of("UTC")));
        hicn.ifPresent(ce::setHicn);
        mbi.ifPresent(ce::setMbi);
        ce.setLoincCode(CATEGORY_LOINC_CODE);
        ce.setPolicyCode(OPT_IN);
        ce.setPurposeCode(TREATMENT);
        ce.setScopeCode(SCOPE_CODE);
        ce.setSourceCode(SourceCode.DPC.toString());
        return ce;
    }
}

19 Source : UserEntity.java
with MIT License
from akageun

/**
 * 유저
 *
 * @author akageun
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Enreplacedy
@Table(name = "user")
public clreplaced UserEnreplacedy {

    @Id
    @Column(nullable = false)
    private String userId;

    @Column(nullable = false)
    private String preplacedWd;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @CreationTimestamp
    @Column(nullable = false, updatable = false)
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @UpdateTimestamp
    @Column(nullable = false)
    private LocalDateTime updatedAt;
}

19 Source : BbsTagEntity.java
with MIT License
from akageun

/**
 * 게시글 태그 Enreplacedy
 *
 * @author akageun
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Enreplacedy
@Table(name = "bbs_tag")
public clreplaced BbsTagEnreplacedy {

    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long tagId;

    @Column(length = 512)
    @Size(max = 512, min = 1)
    private String name;

    @Column
    private String // bootstrap label color 넣은 곳
    type;

    @Column
    private String createdUserId;

    @Column
    private String updatedUserId;

    /**
     * 생성일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @CreationTimestamp
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;

    /**
     * 수정일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @UpdateTimestamp
    @Column(name = "updated_at", nullable = false)
    private LocalDateTime updatedAt;
}

19 Source : BbsCategoryEntity.java
with MIT License
from akageun

/**
 * 게시판 카테고리
 *
 * @author akageun
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Enreplacedy
@Table(name = "bbs_category")
public clreplaced BbsCategoryEnreplacedy {

    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long categoryId;

    @Column(length = 512)
    private String name;

    @Column
    private String // bootstrap label color 넣은 곳
    type;

    @Column
    private String createdUserId;

    @Column
    private String updatedUserId;

    /**
     * 생성일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @CreationTimestamp
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;

    /**
     * 수정일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @UpdateTimestamp
    @Column(name = "updated_at", nullable = false)
    private LocalDateTime updatedAt;
}

19 Source : BbsArticleTagEntity.java
with MIT License
from akageun

/**
 * 게시글 태그 mapping Enreplacedy
 *
 * @author akageun
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Enreplacedy
@Table(name = "bbs_article_tag", indexes = { @Index(name = "IDX_articleId", columnList = "articleId") })
public clreplaced BbsArticleTagEnreplacedy {

    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long articleTagId;

    @Column
    private Long articleId;

    @Column
    private Long tagId;

    @Column
    private String createdUserId;

    @Column
    private String updatedUserId;

    /**
     * 생성일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @CreationTimestamp
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;

    /**
     * 수정일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @UpdateTimestamp
    @Column(name = "updated_at", nullable = false)
    private LocalDateTime updatedAt;
}

19 Source : BbsArticleEntity.java
with MIT License
from akageun

/**
 * 게시글 Enreplacedy
 *
 * @author akageun
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Enreplacedy
@Table(name = "bbs_article")
public clreplaced BbsArticleEnreplacedy {

    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long articleId;

    @Column
    private String statusCd;

    @Column
    private Long categoryId;

    @Column
    private String replacedle;

    @Lob
    @Column
    private String content;

    @Column
    private String createdUserId;

    @Column
    private String updatedUserId;

    /**
     * 생성일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @CreationTimestamp
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;

    /**
     * 수정일시
     */
    @JsonFormat(pattern = CmnConst.YMDHMS_READONLY)
    @UpdateTimestamp
    @Column(name = "updated_at", nullable = false)
    private LocalDateTime updatedAt;

    @OneToOne
    @JoinColumn(name = "categoryId", insertable = false, updatable = false)
    private BbsCategoryEnreplacedy bbsCategoryEnreplacedy;

    /**
     * 무한루프로 인해 override
     *
     * @return
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}

19 Source : SCAOperationEntity.java
with Apache License 2.0
from adorsys

/**
 * The SCA operation enreplacedy. We distinguish among following business operations.
 * - Login : - the opId shall be a generated login session id. - the
 * authorisationId shall be the same as the operation id. - Consent: A single
 * consent might need multiple authorisations. - the opId is the consentId - the
 * authorisationId is a generated number. - Payment: A single payment might need
 * multiple authorisations. - the opId is the paymentId - the authorisationId is
 * a generated number.
 * <p>
 * We can create an SCA without have sent out the code. This is generally the
 * case when a business operation (login, consent, payment) is initiated.
 *
 * @author fpo
 */
@Enreplacedy
@Data
@Table(name = "sca_operation")
public clreplaced SCAOperationEnreplacedy {

    /**
     * The id of this authorization instance. This will generally match the
     * authorization id.
     */
    @Id
    private String id;

    /**
     * The id of the business operation being authorized.
     */
    @Column(name = "op_id", nullable = false, updatable = false)
    private String opId;

    @Column(name = "external_id")
    private String externalId;

    @Column(name = "validity_seconds", nullable = false, updatable = false)
    private int validitySeconds;

    /* The hash of auth code and opData */
    @Column(name = "auth_code_hash")
    private String authCodeHash;

    @Column(nullable = false)
    @Enumerated(EnumType.STRING)
    private AuthCodeStatus status;

    @Column(name = "hash_alg")
    private String hashAlg;

    @Column(nullable = false, updatable = false)
    @Convert(converter = LocalDateTimeConverter.clreplaced)
    private LocalDateTime created;

    @Column(name = "status_time", nullable = false)
    @Convert(converter = LocalDateTimeConverter.clreplaced)
    private LocalDateTime statusTime;

    /* The operation type. Could be login, consent, payment. */
    @Column(name = "op_type")
    @Enumerated(EnumType.STRING)
    private OpType opType;

    /*
     * Stores the sca method is replacedociated with this authorization. The sca method
     * id is not supposed to change after the code was sent out.
     */
    @Column(name = "sca_method_id")
    private String scaMethodId;

    /*
     * Records the number of failed attempts.
     *
     */
    @Column(name = "failled_count")
    private int failledCount;

    @Column(name = "sca_status")
    @Enumerated(EnumType.STRING)
    private ScaStatus scaStatus;

    @Column(nullable = false)
    private int scaWeight;

    @Column
    @UpdateTimestamp
    private LocalDateTime updated;

    @PrePersist
    public void prePersist() {
        if (created == null) {
            created = LocalDateTime.now();
        }
    }

    public SCAOperationEnreplacedy updateStatuses(boolean isCodeConfirmValid) {
        this.status = VALIDATED;
        this.scaStatus = ScaStatus.FINALISED;
        if (!isCodeConfirmValid) {
            this.status = FAILED;
            this.scaStatus = ScaStatus.FAILED;
        }
        this.statusTime = LocalDateTime.now();
        return this;
    }

    public boolean isOperationExpired() {
        boolean hasExpiredStatus = this.status == EXPIRED;
        return hasExpiredStatus || LocalDateTime.now().isAfter(this.created.plusSeconds(this.validitySeconds));
    }

    public void validate(ScaStatus scaStatus, int scaWeight) {
        this.scaStatus = scaStatus;
        this.scaWeight = scaWeight;
        updateStatusAndTime(VALIDATED);
    }

    public void expireOperation() {
        this.scaStatus = ScaStatus.FAILED;
        this.scaWeight = 0;
        updateStatusAndTime(EXPIRED);
    }

    public boolean isOperationAlreadyUsed() {
        return EnumSet.of(VALIDATED, EXPIRED, DONE).contains(this.status) || EnumSet.of(ScaStatus.FAILED, ScaStatus.FINALISED).contains(this.scaStatus);
    }

    public SCAOperationEnreplacedy(String authId, String opId, String externalId, OpType opType, String scaMethodId, int validitySeconds, int authCodeValiditySeconds, ScaStatus scaStatus, int scaWeight) {
        this.id = authId;
        this.opId = opId;
        this.externalId = externalId;
        this.opType = opType;
        this.scaMethodId = scaMethodId;
        this.created = LocalDateTime.now();
        this.validitySeconds = validitySeconds <= 0 ? authCodeValiditySeconds : validitySeconds;
        this.scaStatus = scaStatus;
        this.scaWeight = scaWeight;
        updateStatusAndTime(INITIATED);
    }

    public void updateStatusSent(int authCodeValiditySeconds, String authCodeHash, String hashAlg) {
        this.created = LocalDateTime.now();
        this.validitySeconds = this.validitySeconds <= 0 ? authCodeValiditySeconds : this.validitySeconds;
        this.hashAlg = hashAlg;
        this.authCodeHash = authCodeHash;
        updateStatusAndTime(SENT);
    }

    public void fail(boolean isLoginOperation, int loginFailedMax, int authCodeFailedMax) {
        this.failledCount = this.failledCount + 1;
        int failedMax = isLoginOperation ? loginFailedMax : authCodeFailedMax;
        if (this.failledCount >= failedMax) {
            this.scaStatus = ScaStatus.FAILED;
        }
        updateStatusAndTime(FAILED);
    }

    private void updateStatusAndTime(AuthCodeStatus status) {
        this.statusTime = LocalDateTime.now();
        this.status = status;
    }
}

18 Source : BaseEntity.java
with Apache License 2.0
from yingziisme

/**
 * BaseEnreplacedy
 *
 * @author MT.LUO
 * 2018/8/6 22:31
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@MappedSuperclreplaced
public abstract clreplaced BaseEnreplacedy<T extends BaseEnreplacedy, ID> implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENreplacedY)
    @Column(name = "id")
    protected ID id;

    @Temporal(TemporalType.TIMESTAMP)
    @CreationTimestamp
    @Column(name = "gmt_create", nullable = false, updatable = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    protected Date gmtCreate;

    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTimestamp
    @Column(name = "gmt_update", nullable = true, insertable = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    protected Date gmtUpdate;

    /**
     * true ---deleted ; false -- exist
     */
    // 虚假删除,deleted为true表示删除了
    @Column(name = "deleted", length = 1)
    protected boolean deleted = false;
}

See More Examples