|
@@ -19,8 +19,18 @@ import javax.persistence.PostLoad;
|
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Table;
|
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.Temporal;
|
|
|
import javax.persistence.TemporalType;
|
|
import javax.persistence.TemporalType;
|
|
|
|
|
+import javax.persistence.Transient;
|
|
|
import javax.persistence.UniqueConstraint;
|
|
import javax.persistence.UniqueConstraint;
|
|
|
|
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.apache.openjpa.persistence.Persistent;
|
|
|
|
|
+import org.apache.openjpa.persistence.PersistentCollection;
|
|
|
|
|
+import org.apache.openjpa.persistence.jdbc.ContainerTable;
|
|
|
|
|
+import org.apache.openjpa.persistence.jdbc.ElementColumn;
|
|
|
|
|
+import org.apache.openjpa.persistence.jdbc.ElementIndex;
|
|
|
|
|
+import org.apache.openjpa.persistence.jdbc.Index;
|
|
|
|
|
+import org.apache.openjpa.persistence.jdbc.Strategy;
|
|
|
|
|
+
|
|
|
import com.x.base.core.entity.JpaObject;
|
|
import com.x.base.core.entity.JpaObject;
|
|
|
import com.x.base.core.entity.SliceJpaObject;
|
|
import com.x.base.core.entity.SliceJpaObject;
|
|
|
import com.x.base.core.entity.annotation.CheckPersist;
|
|
import com.x.base.core.entity.annotation.CheckPersist;
|
|
@@ -34,15 +44,6 @@ import com.x.base.core.project.tools.StringTools;
|
|
|
import com.x.processplatform.core.entity.PersistenceProperties;
|
|
import com.x.processplatform.core.entity.PersistenceProperties;
|
|
|
import com.x.processplatform.core.entity.element.ActivityType;
|
|
import com.x.processplatform.core.entity.element.ActivityType;
|
|
|
|
|
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
-import org.apache.openjpa.persistence.Persistent;
|
|
|
|
|
-import org.apache.openjpa.persistence.PersistentCollection;
|
|
|
|
|
-import org.apache.openjpa.persistence.jdbc.ContainerTable;
|
|
|
|
|
-import org.apache.openjpa.persistence.jdbc.ElementColumn;
|
|
|
|
|
-import org.apache.openjpa.persistence.jdbc.ElementIndex;
|
|
|
|
|
-import org.apache.openjpa.persistence.jdbc.Index;
|
|
|
|
|
-import org.apache.openjpa.persistence.jdbc.Strategy;
|
|
|
|
|
-
|
|
|
|
|
@Entity
|
|
@Entity
|
|
|
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
|
|
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
|
|
|
@Table(name = PersistenceProperties.Content.Work.table, uniqueConstraints = {
|
|
@Table(name = PersistenceProperties.Content.Work.table, uniqueConstraints = {
|
|
@@ -96,6 +97,7 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
|
|
|
public void postLoad() {
|
|
public void postLoad() {
|
|
|
if ((null != this.properties) && StringUtils.isNotEmpty(this.getProperties().getTitle())) {
|
|
if ((null != this.properties) && StringUtils.isNotEmpty(this.getProperties().getTitle())) {
|
|
|
this.title = this.getProperties().getTitle();
|
|
this.title = this.getProperties().getTitle();
|
|
|
|
|
+ this.splitValueList = this.getProperties().getSplitValueList();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -145,8 +147,20 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
|
|
|
: WORKCREATETYPE_SURFACE;
|
|
: WORKCREATETYPE_SURFACE;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public List<String> getSplitValueList() {
|
|
|
|
|
+ return this.splitValueList;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setSplitValueList(List<String> splitValueList) {
|
|
|
|
|
+ this.splitValueList = splitValueList;
|
|
|
|
|
+ this.getProperties().setSplitValueList(splitValueList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/* 修改过的Set Get 方法 */
|
|
/* 修改过的Set Get 方法 */
|
|
|
|
|
|
|
|
|
|
+ @Transient
|
|
|
|
|
+ private List<String> splitValueList;
|
|
|
|
|
+
|
|
|
public static final String job_FIELDNAME = "job";
|
|
public static final String job_FIELDNAME = "job";
|
|
|
@FieldDescribe("工作")
|
|
@FieldDescribe("工作")
|
|
|
@Column(length = JpaObject.length_id, name = ColumnNamePrefix + job_FIELDNAME)
|
|
@Column(length = JpaObject.length_id, name = ColumnNamePrefix + job_FIELDNAME)
|
|
@@ -161,14 +175,6 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
|
|
|
@CheckPersist(allowEmpty = true)
|
|
@CheckPersist(allowEmpty = true)
|
|
|
private String title;
|
|
private String title;
|
|
|
|
|
|
|
|
- // public static final String titleLob_FIELDNAME = "titleLob";
|
|
|
|
|
- // @FieldDescribe("标题,长文本")
|
|
|
|
|
- // @Lob
|
|
|
|
|
- // @Basic(fetch = FetchType.EAGER)
|
|
|
|
|
- // @Column(length = JpaObject.length_1M, name = ColumnNamePrefix +
|
|
|
|
|
- // titleLob_FIELDNAME)
|
|
|
|
|
- // private String titleLob;
|
|
|
|
|
-
|
|
|
|
|
public static final String startTime_FIELDNAME = "startTime";
|
|
public static final String startTime_FIELDNAME = "startTime";
|
|
|
@FieldDescribe("工作开始时间")
|
|
@FieldDescribe("工作开始时间")
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
@Temporal(TemporalType.TIMESTAMP)
|