|
|
@@ -0,0 +1,311 @@
|
|
|
+package com.x.organization.core.entity.accredit;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+import javax.persistence.Column;
|
|
|
+import javax.persistence.Entity;
|
|
|
+import javax.persistence.Id;
|
|
|
+import javax.persistence.Inheritance;
|
|
|
+import javax.persistence.InheritanceType;
|
|
|
+import javax.persistence.Table;
|
|
|
+import javax.persistence.Temporal;
|
|
|
+import javax.persistence.TemporalType;
|
|
|
+import javax.persistence.UniqueConstraint;
|
|
|
+
|
|
|
+import org.apache.openjpa.persistence.jdbc.Index;
|
|
|
+
|
|
|
+import com.x.base.core.entity.JpaObject;
|
|
|
+import com.x.base.core.entity.SliceJpaObject;
|
|
|
+import com.x.base.core.entity.annotation.CheckPersist;
|
|
|
+import com.x.base.core.entity.annotation.ContainerEntity;
|
|
|
+import com.x.base.core.project.annotation.FieldDescribe;
|
|
|
+import com.x.organization.core.entity.PersistenceProperties;
|
|
|
+
|
|
|
+@Entity
|
|
|
+@ContainerEntity
|
|
|
+@Table(name = PersistenceProperties.Accredit.TrustLog.table, uniqueConstraints = {
|
|
|
+ @UniqueConstraint(name = PersistenceProperties.Accredit.TrustLog.table + JpaObject.IndexNameMiddle
|
|
|
+ + JpaObject.DefaultUniqueConstraintSuffix, columnNames = { JpaObject.IDCOLUMN,
|
|
|
+ JpaObject.CREATETIMECOLUMN, JpaObject.UPDATETIMECOLUMN, JpaObject.SEQUENCECOLUMN }) })
|
|
|
+@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
|
|
+public class TrustLog extends SliceJpaObject {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 6677140471323901242L;
|
|
|
+ private static final String TABLE = PersistenceProperties.Accredit.TrustLog.table;
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ @FieldDescribe("数据库主键,自动生成.")
|
|
|
+ @Id
|
|
|
+ @Column(length = length_id, name = ColumnNamePrefix + id_FIELDNAME)
|
|
|
+ private String id = createId();
|
|
|
+
|
|
|
+ /* 以上为 JpaObject 默认字段 */
|
|
|
+
|
|
|
+ public void onPersist() throws Exception {
|
|
|
+ }
|
|
|
+
|
|
|
+ /** 更新运行方法 */
|
|
|
+
|
|
|
+ /** flag标志位 */
|
|
|
+ /** 默认内容结束 */
|
|
|
+
|
|
|
+ public static final String fromPerson_FIELDNAME = "fromPerson";
|
|
|
+ @FieldDescribe("人员.")
|
|
|
+ @Column(length = JpaObject.length_255B, name = ColumnNamePrefix + fromPerson_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + fromPerson_FIELDNAME)
|
|
|
+ private String fromPerson;
|
|
|
+
|
|
|
+ public static final String fromIdentity_FIELDNAME = "fromIdentity";
|
|
|
+ @FieldDescribe("身份.")
|
|
|
+ @Column(length = JpaObject.length_255B, name = ColumnNamePrefix + fromIdentity_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + fromIdentity_FIELDNAME)
|
|
|
+ private String fromIdentity;
|
|
|
+
|
|
|
+ public static final String toPerson_FIELDNAME = "toPerson";
|
|
|
+ @FieldDescribe("委托人员.")
|
|
|
+ @Column(length = JpaObject.length_255B, name = ColumnNamePrefix + toPerson_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + toPerson_FIELDNAME)
|
|
|
+ private String toPerson;
|
|
|
+
|
|
|
+ public static final String toIdentity_FIELDNAME = "toIdentity";
|
|
|
+ @FieldDescribe("委托身份.")
|
|
|
+ @Column(length = JpaObject.length_255B, name = ColumnNamePrefix + toIdentity_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + toIdentity_FIELDNAME)
|
|
|
+ private String toIdentity;
|
|
|
+
|
|
|
+ public static final String application_FIELDNAME = "application";
|
|
|
+ @FieldDescribe("应用.")
|
|
|
+ @Column(length = JpaObject.length_id, name = ColumnNamePrefix + application_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + application_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String application;
|
|
|
+
|
|
|
+ public static final String applicationName_FIELDNAME = "applicationName";
|
|
|
+ @FieldDescribe("应用名称.")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + applicationName_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + applicationName_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String applicationName;
|
|
|
+
|
|
|
+ public static final String applicationAlias_FIELDNAME = "applicationAlias";
|
|
|
+ @FieldDescribe("应用别名.")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + applicationAlias_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + applicationAlias_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String applicationAlias;
|
|
|
+
|
|
|
+ public static final String process_FIELDNAME = "process";
|
|
|
+ @FieldDescribe("流程ID.")
|
|
|
+ @Column(length = JpaObject.length_id, name = ColumnNamePrefix + process_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + process_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String process;
|
|
|
+
|
|
|
+ public static final String processName_FIELDNAME = "processName";
|
|
|
+ @FieldDescribe("流程名称.")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + processName_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + processName_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String processName;
|
|
|
+
|
|
|
+ public static final String processAlias_FIELDNAME = "processAlias";
|
|
|
+ @FieldDescribe("流程别名.")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + processAlias_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + processAlias_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String processAlias;
|
|
|
+
|
|
|
+ public static final String job_FIELDNAME = "job";
|
|
|
+ @FieldDescribe("任务标识.")
|
|
|
+ @Column(length = JpaObject.length_id, name = ColumnNamePrefix + job_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + job_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String job;
|
|
|
+
|
|
|
+ public static final String work_FIELDNAME = "work";
|
|
|
+ @FieldDescribe("work标识.")
|
|
|
+ @Column(length = JpaObject.length_id, name = ColumnNamePrefix + work_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + work_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String work;
|
|
|
+
|
|
|
+ public static final String trustTime_FIELDNAME = "trustTime";
|
|
|
+ @FieldDescribe("委托时间.")
|
|
|
+ @Temporal(TemporalType.TIMESTAMP)
|
|
|
+ @Column(name = ColumnNamePrefix + trustTime_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + trustTime_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private Date trustTime;
|
|
|
+
|
|
|
+ public static final String title_FIELDNAME = "title";
|
|
|
+ @FieldDescribe("标题.")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + title_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + title_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ public static final String activity_FIELDNAME = "activity";
|
|
|
+ @FieldDescribe("当前活动ID")
|
|
|
+ @Column(length = JpaObject.length_id, name = ColumnNamePrefix + activity_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + activity_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String activity;
|
|
|
+
|
|
|
+ public static final String activityName_FIELDNAME = "activityName";
|
|
|
+ @FieldDescribe("活动名称")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + activityName_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + activityName_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String activityName;
|
|
|
+
|
|
|
+ public static final String activityAlias_FIELDNAME = "activityAlias";
|
|
|
+ @FieldDescribe("活动别名")
|
|
|
+ @Column(length = length_255B, name = ColumnNamePrefix + activityAlias_FIELDNAME)
|
|
|
+ @Index(name = TABLE + IndexNameMiddle + activityAlias_FIELDNAME)
|
|
|
+ @CheckPersist(allowEmpty = true)
|
|
|
+ private String activityAlias;
|
|
|
+
|
|
|
+ public String getFromPerson() {
|
|
|
+ return fromPerson;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFromPerson(String fromPerson) {
|
|
|
+ this.fromPerson = fromPerson;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFromIdentity() {
|
|
|
+ return fromIdentity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFromIdentity(String fromIdentity) {
|
|
|
+ this.fromIdentity = fromIdentity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getToPerson() {
|
|
|
+ return toPerson;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setToPerson(String toPerson) {
|
|
|
+ this.toPerson = toPerson;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getToIdentity() {
|
|
|
+ return toIdentity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setToIdentity(String toIdentity) {
|
|
|
+ this.toIdentity = toIdentity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getApplication() {
|
|
|
+ return application;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApplication(String application) {
|
|
|
+ this.application = application;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getApplicationName() {
|
|
|
+ return applicationName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApplicationName(String applicationName) {
|
|
|
+ this.applicationName = applicationName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getApplicationAlias() {
|
|
|
+ return applicationAlias;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApplicationAlias(String applicationAlias) {
|
|
|
+ this.applicationAlias = applicationAlias;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProcess() {
|
|
|
+ return process;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProcess(String process) {
|
|
|
+ this.process = process;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProcessName() {
|
|
|
+ return processName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProcessName(String processName) {
|
|
|
+ this.processName = processName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProcessAlias() {
|
|
|
+ return processAlias;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProcessAlias(String processAlias) {
|
|
|
+ this.processAlias = processAlias;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getJob() {
|
|
|
+ return job;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setJob(String job) {
|
|
|
+ this.job = job;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getWork() {
|
|
|
+ return work;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setWork(String work) {
|
|
|
+ this.work = work;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getTrustTime() {
|
|
|
+ return trustTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTrustTime(Date trustTime) {
|
|
|
+ this.trustTime = trustTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTitle() {
|
|
|
+ return title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTitle(String title) {
|
|
|
+ this.title = title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getActivity() {
|
|
|
+ return activity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setActivity(String activity) {
|
|
|
+ this.activity = activity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getActivityName() {
|
|
|
+ return activityName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setActivityName(String activityName) {
|
|
|
+ this.activityName = activityName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getActivityAlias() {
|
|
|
+ return activityAlias;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setActivityAlias(String activityAlias) {
|
|
|
+ this.activityAlias = activityAlias;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|