• springDataEntity 示例


    package com.guohuai.cms.platformext.push;

    import java.io.Serializable;
    import java.sql.Timestamp;

    import javax.persistence.Entity;
    import javax.persistence.Table;

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

    import com.guohuai.cms.component.persist.UUID;

    import lombok.EqualsAndHashCode;
    import lombok.NoArgsConstructor;
    @Entity
    @Table(name = "T_PLATFORM_PUSH")
    @lombok.Data
    @EqualsAndHashCode(callSuper = false)
    @NoArgsConstructor
    @DynamicInsert
    @DynamicUpdate
    public class PushExtEntity extends UUID implements Serializable{
    /**
    *
    */
    private static final long serialVersionUID = 1L;

    /** 活动状态-已发布 */
    public static final String PUSH_status_on = "on";

    /** 活动状态-已审核 */
    public static final String PUSH_status_reviewed = "reviewed";
    /** 活动状态-未审核 */
    public static final String PUSH_status_pending= "pending";
    /** 活动状态-已驳回 */
    public static final String PUSH_status_refused = "reject";

    /** 审批结果状态-通过 */
    public static final String PUSH_reviewStatus_pass = "pass";
    /** 审批结果状态-驳回 */
    public static final String PUSH_reviewStatus_refused = "refused";

    public static final String PUSH_pushType_all = "all";
    public static final String PUSH_pushType_person = "person";
    public static final String PUSH_pushType_group = "team";


    public static final String PUSH_type_mail = "mail"; // 站内信

    /**
    * 标题
    */
    private String title;
    /**
    * 推送链接地址
    */
    private String url;

    /**
    * 类型
    */
    private String type;
    /**
    * 状态
    */
    private String status;
    /**
    * 编辑者
    */
    private String creator;
    /**
    * 编辑时间
    */
    private Timestamp createTime;
    /**
    * 审核者
    */
    private String review;
    /**
    * 审核时间
    */
    private Timestamp reviewTime;
    /**
    * 发布者
    */
    private String pusher;
    /**
    * 发布时间
    */
    private Timestamp pushTime;
    /**
    * 审核意见
    */
    private String reviewRemark;
    /**
    * 摘要
    */
    private String summary;

    /**
    * 推送类型 个人 全站
    */
    private String pushType;

    /**
    * 推送目标用户
    */
    private String pushUserOid;

    private String labelCode;

    /**
    * 推送目标用户账号
    */
    private String pushUserAcc;

    }

  • 相关阅读:
    下面这段java的源代码的意思
    Swing高级JInternalFrameTest内部窗体
    (转)为什么水平滚动条显示不了
    创建主窗体(转)
    javax.swing.JOptionPane.showMessageDialog() 方法
    Java图形界面设计
    java 做项目时遇到的一些问题
    selectmethod=cursor的含义及其使用
    java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433;
    10.24
  • 原文地址:https://www.cnblogs.com/lize1215/p/8482293.html
Copyright © 2020-2023  润新知