提交 c9544dd2 编写于 作者: R Ray

删除boolean值索引

上级 de62e3f7
...@@ -41,16 +41,18 @@ public class CheckCore { ...@@ -41,16 +41,18 @@ public class CheckCore {
checkColumnName(classes); checkColumnName(classes);
checkColumnLength(classes); checkColumnLength(classes);
checkLobIndex(classes); checkLobIndex(classes);
checkBooleanIndex(classes);
checkListFieldContainerTableName(classes); checkListFieldContainerTableName(classes);
checkFieldDescribeOnStatic(classes); checkFieldDescribeOnStatic(classes);
checkTableNameUniqueConstraintName(classes); checkTableNameUniqueConstraintName(classes);
checkIdCreateTimeUpdateTimeSequenceIndex(classes); checkIdCreateTimeUpdateTimeSequenceIndex(classes);
checkEnum(classes); checkEnum(classes);
checkDumpSize(classes); checkDumpSize(classes);
} }
} }
public static String packageName(String name) throws Exception { public static String packageName(String name) throws ClassNotFoundException {
try (ScanResult scanResult = new ClassGraph().enableAnnotationInfo().scan()) { try (ScanResult scanResult = new ClassGraph().enableAnnotationInfo().scan()) {
List<ClassInfo> classInfos = scanResult.getClassesWithAnnotation(Module.class.getName()); List<ClassInfo> classInfos = scanResult.getClassesWithAnnotation(Module.class.getName());
for (ClassInfo info : classInfos) { for (ClassInfo info : classInfos) {
...@@ -67,16 +69,14 @@ public class CheckCore { ...@@ -67,16 +69,14 @@ public class CheckCore {
/* /*
* 检查数据库字段名是否是ColumnNamePrefix + fieldName * 检查数据库字段名是否是ColumnNamePrefix + fieldName
*/ */
public static void checkColumnName(List<Class<?>> classes) throws Exception { public static void checkColumnName(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getAllFieldsList(cls); List<Field> fields = FieldUtils.getAllFieldsList(cls);
for (Field field : fields) { for (Field field : fields) {
Column col = field.getAnnotation(Column.class); Column col = field.getAnnotation(Column.class);
if (null != col) { if ((null != col) && (!StringUtils.equals(JpaObject.ColumnNamePrefix + field.getName(), col.name()))) {
if (!StringUtils.equals(JpaObject.ColumnNamePrefix + field.getName(), col.name())) { System.err.println(String.format("checkColumnName error: class: %s, field: %s.", cls.getName(),
System.err.println(String.format("checkColumnName error: class: %s, field: %s.", cls.getName(), field.getName()));
field.getName()));
}
} }
} }
} }
...@@ -85,7 +85,7 @@ public class CheckCore { ...@@ -85,7 +85,7 @@ public class CheckCore {
/* /*
* 检查是否有将Lob类型字段增加索引 * 检查是否有将Lob类型字段增加索引
*/ */
public static void checkLobIndex(List<Class<?>> classes) throws Exception { public static void checkLobIndex(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getAllFieldsList(cls); List<Field> fields = FieldUtils.getAllFieldsList(cls);
for (Field field : fields) { for (Field field : fields) {
...@@ -100,28 +100,25 @@ public class CheckCore { ...@@ -100,28 +100,25 @@ public class CheckCore {
} }
/* /*
* 检查StringList从表名 * 检查是否有将Boolean类型字段增加索引
*
* @FieldDescribe("群组的个人成员.存放个人 ID.")
*
* @PersistentCollection(fetch = FetchType.EAGER)
*
* @OrderColumn(name = ORDERCOLUMNCOLUMN)
*
* @ContainerTable(name = TABLE + ContainerTableNameMiddle +
* personList_FIELDNAME, joinIndex = @Index(name = TABLE + IndexNameMiddle +
* personList_FIELDNAME + JoinIndexNameSuffix))
*
* @ElementColumn(length = JpaObject.length_id, name = ColumnNamePrefix +
* personList_FIELDNAME)
*
* @ElementIndex(name = TABLE + IndexNameMiddle + personList_FIELDNAME +
* ElementIndexNameSuffix)
*
* @CheckPersist(allowEmpty = true, citationExists = @CitationExist(type =
* Person.class)) private List<String> personList;
*/ */
public static void checkListFieldContainerTableName(List<Class<?>> classes) throws Exception { public static void checkBooleanIndex(List<Class<?>> classes) {
for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getAllFieldsList(cls);
for (Field field : fields) {
if (Boolean.class.isAssignableFrom(field.getType())) {
org.apache.openjpa.persistence.jdbc.Index index = field
.getAnnotation(org.apache.openjpa.persistence.jdbc.Index.class);
if (null != index) {
System.err.println(String.format("checkBooleanIndex error: class: %s, field: %s.",
cls.getName(), field.getName()));
}
}
}
}
}
public static void checkListFieldContainerTableName(List<Class<?>> classes) throws IllegalAccessException {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getAllFieldsList(cls); List<Field> fields = FieldUtils.getAllFieldsList(cls);
for (Field field : fields) { for (Field field : fields) {
...@@ -144,7 +141,7 @@ public class CheckCore { ...@@ -144,7 +141,7 @@ public class CheckCore {
/* /*
* 检查是否将@FieldDescribe注解到static字段上,如果是意味着上下行搞错了 * 检查是否将@FieldDescribe注解到static字段上,如果是意味着上下行搞错了
*/ */
public static void checkFieldDescribeOnStatic(List<Class<?>> classes) throws Exception { public static void checkFieldDescribeOnStatic(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getFieldsListWithAnnotation(cls, FieldDescribe.class); List<Field> fields = FieldUtils.getFieldsListWithAnnotation(cls, FieldDescribe.class);
for (Field field : fields) { for (Field field : fields) {
...@@ -159,12 +156,12 @@ public class CheckCore { ...@@ -159,12 +156,12 @@ public class CheckCore {
/* /*
* 检查约束名中的table名称和entity类中的TABLE名称是否一致 * 检查约束名中的table名称和entity类中的TABLE名称是否一致
*/ */
public static void checkTableNameUniqueConstraintName(List<Class<?>> classes) throws Exception { public static void checkTableNameUniqueConstraintName(List<Class<?>> classes) throws IllegalAccessException {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
Table table = cls.getAnnotation(Table.class); Table table = cls.getAnnotation(Table.class);
String name = Objects.toString(FieldUtils.readStaticField(cls, "TABLE", true)); String name = Objects.toString(FieldUtils.readStaticField(cls, "TABLE", true));
if (!StringUtils.equals(table.name(), name)) { if (!StringUtils.equals(table.name(), name)) {
System.out.println("table name not match:" + cls); System.err.println("table name not match:" + cls);
} }
for (UniqueConstraint u : table.uniqueConstraints()) { for (UniqueConstraint u : table.uniqueConstraints()) {
if (!StringUtils.startsWith(u.name(), table.name())) { if (!StringUtils.startsWith(u.name(), table.name())) {
...@@ -178,7 +175,7 @@ public class CheckCore { ...@@ -178,7 +175,7 @@ public class CheckCore {
/* /*
* 检查类中是否有在createTime,updateTime和sequence上的索引,这几个索引已经用约束在类上了 * 检查类中是否有在createTime,updateTime和sequence上的索引,这几个索引已经用约束在类上了
*/ */
public static void checkIdCreateTimeUpdateTimeSequenceIndex(List<Class<?>> classes) throws Exception { public static void checkIdCreateTimeUpdateTimeSequenceIndex(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
Field idField = FieldUtils.getField(cls, JpaObject.id_FIELDNAME, true); Field idField = FieldUtils.getField(cls, JpaObject.id_FIELDNAME, true);
Field createTimeField = FieldUtils.getField(cls, JpaObject.createTime_FIELDNAME, true); Field createTimeField = FieldUtils.getField(cls, JpaObject.createTime_FIELDNAME, true);
...@@ -196,7 +193,7 @@ public class CheckCore { ...@@ -196,7 +193,7 @@ public class CheckCore {
/* /*
* 检查entity是否有重复的字段 * 检查entity是否有重复的字段
*/ */
public static void checkEnum(List<Class<?>> classes) throws Exception { public static void checkEnum(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getFieldsListWithAnnotation(cls, FieldDescribe.class); List<Field> fields = FieldUtils.getFieldsListWithAnnotation(cls, FieldDescribe.class);
for (Field field : fields) { for (Field field : fields) {
...@@ -214,7 +211,7 @@ public class CheckCore { ...@@ -214,7 +211,7 @@ public class CheckCore {
} }
/* 检查是否有对String lob 之外的字段设定长度 */ /* 检查是否有对String lob 之外的字段设定长度 */
public static void checkColumnLength(List<Class<?>> classes) throws Exception { public static void checkColumnLength(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
List<Field> fields = FieldUtils.getFieldsListWithAnnotation(cls, Column.class); List<Field> fields = FieldUtils.getFieldsListWithAnnotation(cls, Column.class);
for (Field field : fields) { for (Field field : fields) {
...@@ -234,7 +231,7 @@ public class CheckCore { ...@@ -234,7 +231,7 @@ public class CheckCore {
} }
/* 检查StorageObject的dumpSize是否设置正确 */ /* 检查StorageObject的dumpSize是否设置正确 */
public static void checkDumpSize(List<Class<?>> classes) throws Exception { public static void checkDumpSize(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
if (StorageObject.class.isAssignableFrom(cls)) { if (StorageObject.class.isAssignableFrom(cls)) {
ContainerEntity containerEntity = cls.getAnnotation(ContainerEntity.class); ContainerEntity containerEntity = cls.getAnnotation(ContainerEntity.class);
...@@ -245,7 +242,7 @@ public class CheckCore { ...@@ -245,7 +242,7 @@ public class CheckCore {
} }
} }
public static void checkIdUnique(List<Class<?>> classes) throws Exception { public static void checkIdUnique(List<Class<?>> classes) {
for (Class<?> cls : classes) { for (Class<?> cls : classes) {
Field idField = FieldUtils.getField(cls, JpaObject.id_FIELDNAME, true); Field idField = FieldUtils.getField(cls, JpaObject.id_FIELDNAME, true);
Column column = idField.getAnnotation(Column.class); Column column = idField.getAnnotation(Column.class);
......
...@@ -342,7 +342,6 @@ public class Attachment extends StorageObject { ...@@ -342,7 +342,6 @@ public class Attachment extends StorageObject {
public static final String completed_FIELDNAME = "completed"; public static final String completed_FIELDNAME = "completed";
@FieldDescribe("整个job是否已经完成.") @FieldDescribe("整个job是否已经完成.")
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean completed; private Boolean completed;
...@@ -456,7 +455,6 @@ public class Attachment extends StorageObject { ...@@ -456,7 +455,6 @@ public class Attachment extends StorageObject {
@FieldDescribe("是否使用更深的路径.") @FieldDescribe("是否使用更深的路径.")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + deepPath_FIELDNAME) @Column(name = ColumnNamePrefix + deepPath_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + deepPath_FIELDNAME)
private Boolean deepPath; private Boolean deepPath;
public static final String orderNumber_FIELDNAME = "orderNumber"; public static final String orderNumber_FIELDNAME = "orderNumber";
......
...@@ -31,6 +31,7 @@ import com.x.processplatform.core.entity.PersistenceProperties; ...@@ -31,6 +31,7 @@ import com.x.processplatform.core.entity.PersistenceProperties;
/** /**
* 签批涂鸦信息 * 签批涂鸦信息
*
* @author sword * @author sword
*/ */
@Entity @Entity
...@@ -47,11 +48,11 @@ public class DocSignScrawl extends StorageObject { ...@@ -47,11 +48,11 @@ public class DocSignScrawl extends StorageObject {
private static final String TABLE = PersistenceProperties.Content.DocSignScrawl.table; private static final String TABLE = PersistenceProperties.Content.DocSignScrawl.table;
public static String SCRAWL_TYPE_PLACEHOLDER = "placeholder"; public static final String SCRAWL_TYPE_PLACEHOLDER = "placeholder";
public static String SCRAWL_TYPE_BASE64 = "base64"; public static final String SCRAWL_TYPE_BASE64 = "base64";
public static String SCRAWL_TYPE_IMAGE = "image"; public static final String SCRAWL_TYPE_IMAGE = "image";
@Override @Override
public String getId() { public String getId() {
...@@ -70,7 +71,7 @@ public class DocSignScrawl extends StorageObject { ...@@ -70,7 +71,7 @@ public class DocSignScrawl extends StorageObject {
@Override @Override
public void onPersist() throws Exception { public void onPersist() throws Exception {
if(StringUtils.isNotBlank(this.name)){ if (StringUtils.isNotBlank(this.name)) {
this.extension = StringUtils.lowerCase(FilenameUtils.getExtension(name)); this.extension = StringUtils.lowerCase(FilenameUtils.getExtension(name));
} }
} }
...@@ -140,7 +141,6 @@ public class DocSignScrawl extends StorageObject { ...@@ -140,7 +141,6 @@ public class DocSignScrawl extends StorageObject {
@FieldDescribe("是否使用更深的路径.") @FieldDescribe("是否使用更深的路径.")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + deepPath_FIELDNAME) @Column(name = ColumnNamePrefix + deepPath_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + deepPath_FIELDNAME)
private Boolean deepPath; private Boolean deepPath;
@Override @Override
......
...@@ -146,7 +146,6 @@ public class DocumentVersion extends SliceJpaObject { ...@@ -146,7 +146,6 @@ public class DocumentVersion extends SliceJpaObject {
public static final String completed_FIELDNAME = "completed"; public static final String completed_FIELDNAME = "completed";
@FieldDescribe("整个job是否已经完成.") @FieldDescribe("整个job是否已经完成.")
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean completed; private Boolean completed;
......
...@@ -201,7 +201,6 @@ public class Read extends SliceJpaObject implements ProjectionInterface { ...@@ -201,7 +201,6 @@ public class Read extends SliceJpaObject implements ProjectionInterface {
public static final String completed_FIELDNAME = "completed"; public static final String completed_FIELDNAME = "completed";
@FieldDescribe("整个job是否已经完成.") @FieldDescribe("整个job是否已经完成.")
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean completed; private Boolean completed;
...@@ -376,7 +375,6 @@ public class Read extends SliceJpaObject implements ProjectionInterface { ...@@ -376,7 +375,6 @@ public class Read extends SliceJpaObject implements ProjectionInterface {
public static final String viewed_FIELDNAME = "viewed"; public static final String viewed_FIELDNAME = "viewed";
@FieldDescribe("是否查看过.") @FieldDescribe("是否查看过.")
@Column(name = ColumnNamePrefix + viewed_FIELDNAME) @Column(name = ColumnNamePrefix + viewed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + viewed_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean viewed; private Boolean viewed;
...@@ -468,14 +466,12 @@ public class Read extends SliceJpaObject implements ProjectionInterface { ...@@ -468,14 +466,12 @@ public class Read extends SliceJpaObject implements ProjectionInterface {
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -198,7 +198,6 @@ public class ReadCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -198,7 +198,6 @@ public class ReadCompleted extends SliceJpaObject implements ProjectionInterface
public static final String completed_FIELDNAME = "completed"; public static final String completed_FIELDNAME = "completed";
@FieldDescribe("整个job是否已经完成.") @FieldDescribe("整个job是否已经完成.")
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean completed; private Boolean completed;
...@@ -487,14 +486,12 @@ public class ReadCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -487,14 +486,12 @@ public class ReadCompleted extends SliceJpaObject implements ProjectionInterface
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -197,7 +197,6 @@ public class Record extends SliceJpaObject { ...@@ -197,7 +197,6 @@ public class Record extends SliceJpaObject {
public static final String workCompleted_FIELDNAME = "workCompleted"; public static final String workCompleted_FIELDNAME = "workCompleted";
@FieldDescribe("已完成工作") @FieldDescribe("已完成工作")
@Column(length = JpaObject.length_id, name = ColumnNamePrefix + workCompleted_FIELDNAME) @Column(length = JpaObject.length_id, name = ColumnNamePrefix + workCompleted_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + workCompleted_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private String workCompleted; private String workCompleted;
...@@ -213,7 +212,6 @@ public class Record extends SliceJpaObject { ...@@ -213,7 +212,6 @@ public class Record extends SliceJpaObject {
@FieldDescribe("是否显示.") @FieldDescribe("是否显示.")
/* 必填值 */ /* 必填值 */
@Column(name = ColumnNamePrefix + display_FIELDNAME) @Column(name = ColumnNamePrefix + display_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + display_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean display; private Boolean display;
......
...@@ -180,7 +180,6 @@ public class Review extends SliceJpaObject implements ProjectionInterface { ...@@ -180,7 +180,6 @@ public class Review extends SliceJpaObject implements ProjectionInterface {
public static final String completed_FIELDNAME = "completed"; public static final String completed_FIELDNAME = "completed";
@FieldDescribe("整个job是否已经完成.") @FieldDescribe("整个job是否已经完成.")
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean completed; private Boolean completed;
...@@ -393,14 +392,12 @@ public class Review extends SliceJpaObject implements ProjectionInterface { ...@@ -393,14 +392,12 @@ public class Review extends SliceJpaObject implements ProjectionInterface {
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -369,7 +369,6 @@ public class Task extends SliceJpaObject implements ProjectionInterface { ...@@ -369,7 +369,6 @@ public class Task extends SliceJpaObject implements ProjectionInterface {
public static final String expired_FIELDNAME = "expired"; public static final String expired_FIELDNAME = "expired";
@FieldDescribe("是否已经超时.") @FieldDescribe("是否已经超时.")
@Column(name = ColumnNamePrefix + expired_FIELDNAME) @Column(name = ColumnNamePrefix + expired_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + expired_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean expired; private Boolean expired;
...@@ -385,7 +384,6 @@ public class Task extends SliceJpaObject implements ProjectionInterface { ...@@ -385,7 +384,6 @@ public class Task extends SliceJpaObject implements ProjectionInterface {
public static final String urged_FIELDNAME = "urged"; public static final String urged_FIELDNAME = "urged";
@FieldDescribe("是否已经催办过.") @FieldDescribe("是否已经催办过.")
@Column(name = ColumnNamePrefix + urged_FIELDNAME) @Column(name = ColumnNamePrefix + urged_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + urged_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean urged; private Boolean urged;
...@@ -453,14 +451,12 @@ public class Task extends SliceJpaObject implements ProjectionInterface { ...@@ -453,14 +451,12 @@ public class Task extends SliceJpaObject implements ProjectionInterface {
public static final String modified_FIELDNAME = "modified"; public static final String modified_FIELDNAME = "modified";
@FieldDescribe("是否在前台保存过数据.") @FieldDescribe("是否在前台保存过数据.")
@Column(name = ColumnNamePrefix + modified_FIELDNAME) @Column(name = ColumnNamePrefix + modified_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + modified_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean modified; private Boolean modified;
public static final String viewed_FIELDNAME = "viewed"; public static final String viewed_FIELDNAME = "viewed";
@FieldDescribe("是否查看过.") @FieldDescribe("是否查看过.")
@Column(name = ColumnNamePrefix + viewed_FIELDNAME) @Column(name = ColumnNamePrefix + viewed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + viewed_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean viewed; private Boolean viewed;
...@@ -725,14 +721,12 @@ public class Task extends SliceJpaObject implements ProjectionInterface { ...@@ -725,14 +721,12 @@ public class Task extends SliceJpaObject implements ProjectionInterface {
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -406,7 +406,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -406,7 +406,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
public static final String completed_FIELDNAME = "completed"; public static final String completed_FIELDNAME = "completed";
@FieldDescribe("整个job是否已经完成.") @FieldDescribe("整个job是否已经完成.")
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean completed; private Boolean completed;
...@@ -481,14 +480,12 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -481,14 +480,12 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
public static final String empowerToIdentity_FIELDNAME = "empowerToIdentity"; public static final String empowerToIdentity_FIELDNAME = "empowerToIdentity";
@FieldDescribe("授权给谁处理,在processType=empower时记录授权对象") @FieldDescribe("授权给谁处理,在processType=empower时记录授权对象")
@Column(length = length_255B, name = ColumnNamePrefix + empowerToIdentity_FIELDNAME) @Column(length = length_255B, name = ColumnNamePrefix + empowerToIdentity_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + empowerToIdentity_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private String empowerToIdentity; private String empowerToIdentity;
public static final String empowerFromIdentity_FIELDNAME = "empowerFromIdentity"; public static final String empowerFromIdentity_FIELDNAME = "empowerFromIdentity";
@FieldDescribe("授权自Identity") @FieldDescribe("授权自Identity")
@Column(length = length_255B, name = ColumnNamePrefix + empowerFromIdentity_FIELDNAME) @Column(length = length_255B, name = ColumnNamePrefix + empowerFromIdentity_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + empowerFromIdentity_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private String empowerFromIdentity; private String empowerFromIdentity;
...@@ -516,7 +513,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -516,7 +513,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
public static final String activityAlias_FIELDNAME = "activityAlias"; public static final String activityAlias_FIELDNAME = "activityAlias";
@FieldDescribe("活动别名.") @FieldDescribe("活动别名.")
@Column(length = length_255B, name = ColumnNamePrefix + activityAlias_FIELDNAME) @Column(length = length_255B, name = ColumnNamePrefix + activityAlias_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + activityAlias_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private String activityAlias; private String activityAlias;
...@@ -530,7 +526,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -530,7 +526,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
@FieldDescribe("活动类型.") @FieldDescribe("活动类型.")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@Column(length = ActivityType.length, name = ColumnNamePrefix + activityType_FIELDNAME) @Column(length = ActivityType.length, name = ColumnNamePrefix + activityType_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + activityType_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private ActivityType activityType; private ActivityType activityType;
...@@ -600,7 +595,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -600,7 +595,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
public static final String expired_FIELDNAME = "expired"; public static final String expired_FIELDNAME = "expired";
@FieldDescribe("是否超时.") @FieldDescribe("是否超时.")
@Column(name = ColumnNamePrefix + expired_FIELDNAME) @Column(name = ColumnNamePrefix + expired_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + expired_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean expired; private Boolean expired;
...@@ -626,7 +620,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -626,7 +620,6 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
public static final String latest_FIELDNAME = "latest"; public static final String latest_FIELDNAME = "latest";
@FieldDescribe("同一Job中同一用户是否是最新的,多人可以有多条已办,页面显示的时候可以通过此标记仅显示一条最新的.") @FieldDescribe("同一Job中同一用户是否是最新的,多人可以有多条已办,页面显示的时候可以通过此标记仅显示一条最新的.")
@Column(name = ColumnNamePrefix + latest_FIELDNAME) @Column(name = ColumnNamePrefix + latest_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + latest_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean latest; private Boolean latest;
...@@ -748,14 +741,12 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -748,14 +741,12 @@ public class TaskCompleted extends SliceJpaObject implements ProjectionInterface
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -351,14 +351,12 @@ public class Work extends SliceJpaObject implements ProjectionInterface { ...@@ -351,14 +351,12 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
public static final String dataChanged_FIELDNAME = "dataChanged"; public static final String dataChanged_FIELDNAME = "dataChanged";
@FieldDescribe("当前工作是否经过保存修改的操作,用于判断是否是默认生成的未经修改的.") @FieldDescribe("当前工作是否经过保存修改的操作,用于判断是否是默认生成的未经修改的.")
@Column(name = ColumnNamePrefix + dataChanged_FIELDNAME) @Column(name = ColumnNamePrefix + dataChanged_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + dataChanged_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean dataChanged; private Boolean dataChanged;
public static final String workThroughManual_FIELDNAME = "workThroughManual"; public static final String workThroughManual_FIELDNAME = "workThroughManual";
@FieldDescribe("是否已经经过人工节点,用于判断是否是草稿.在到达环节进行判断.") @FieldDescribe("是否已经经过人工节点,用于判断是否是草稿.在到达环节进行判断.")
@Column(name = ColumnNamePrefix + workThroughManual_FIELDNAME) @Column(name = ColumnNamePrefix + workThroughManual_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + workThroughManual_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean workThroughManual; private Boolean workThroughManual;
...@@ -404,7 +402,6 @@ public class Work extends SliceJpaObject implements ProjectionInterface { ...@@ -404,7 +402,6 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
/** Split Attribute */ /** Split Attribute */
public static final String splitting_FIELDNAME = "splitting"; public static final String splitting_FIELDNAME = "splitting";
@FieldDescribe("是否是拆分中的工作") @FieldDescribe("是否是拆分中的工作")
@Index(name = TABLE + IndexNameMiddle + splitting_FIELDNAME)
@Column(name = ColumnNamePrefix + splitting_FIELDNAME) @Column(name = ColumnNamePrefix + splitting_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean splitting; private Boolean splitting;
...@@ -562,14 +559,12 @@ public class Work extends SliceJpaObject implements ProjectionInterface { ...@@ -562,14 +559,12 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -117,8 +117,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -117,8 +117,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface
this.processAlias = work.getProcessAlias(); this.processAlias = work.getProcessAlias();
this.serial = work.getSerial(); this.serial = work.getSerial();
this.form = work.getForm(); this.form = work.getForm();
// this.formData = formData;
// this.formMobileData = formMobileData;
this.work = work.getId(); this.work = work.getId();
this.expireTime = work.getExpireTime(); this.expireTime = work.getExpireTime();
if ((null != expireTime) && (completedTime.after(expireTime))) { if ((null != expireTime) && (completedTime.after(expireTime))) {
...@@ -316,7 +314,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -316,7 +314,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface
public static final String expired_FIELDNAME = "expired"; public static final String expired_FIELDNAME = "expired";
@FieldDescribe("是否超时.") @FieldDescribe("是否超时.")
@Column(name = ColumnNamePrefix + expired_FIELDNAME) @Column(name = ColumnNamePrefix + expired_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + expired_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean expired; private Boolean expired;
...@@ -329,7 +326,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -329,7 +326,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface
public static final String allowRollback_FIELDNAME = "allowRollback"; public static final String allowRollback_FIELDNAME = "allowRollback";
@FieldDescribe("完成后是否允许回滚.") @FieldDescribe("完成后是否允许回滚.")
@Column(name = ColumnNamePrefix + allowRollback_FIELDNAME) @Column(name = ColumnNamePrefix + allowRollback_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRollback_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean allowRollback; private Boolean allowRollback;
...@@ -372,7 +368,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -372,7 +368,6 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface
public static final String merged_FIELDNAME = "merged"; public static final String merged_FIELDNAME = "merged";
@FieldDescribe("合并数据") @FieldDescribe("合并数据")
@Column(name = ColumnNamePrefix + merged_FIELDNAME) @Column(name = ColumnNamePrefix + merged_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + merged_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean merged; private Boolean merged;
...@@ -449,14 +444,12 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface ...@@ -449,14 +444,12 @@ public class WorkCompleted extends SliceJpaObject implements ProjectionInterface
public static final String booleanValue01_FIELDNAME = "booleanValue01"; public static final String booleanValue01_FIELDNAME = "booleanValue01";
@FieldDescribe("业务数据Boolean值01.") @FieldDescribe("业务数据Boolean值01.")
@Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue01_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue01_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue01; private Boolean booleanValue01;
public static final String booleanValue02_FIELDNAME = "booleanValue02"; public static final String booleanValue02_FIELDNAME = "booleanValue02";
@FieldDescribe("业务数据Boolean值02.") @FieldDescribe("业务数据Boolean值02.")
@Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue02_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue02_FIELDNAME)
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
private Boolean booleanValue02; private Boolean booleanValue02;
......
...@@ -132,7 +132,6 @@ public class WorkLog extends SliceJpaObject { ...@@ -132,7 +132,6 @@ public class WorkLog extends SliceJpaObject {
@FieldDescribe("工作是否已经完成.") @FieldDescribe("工作是否已经完成.")
/* 必填值 */ /* 必填值 */
@Column(name = ColumnNamePrefix + completed_FIELDNAME) @Column(name = ColumnNamePrefix + completed_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + completed_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean completed; private Boolean completed;
...@@ -310,7 +309,6 @@ public class WorkLog extends SliceJpaObject { ...@@ -310,7 +309,6 @@ public class WorkLog extends SliceJpaObject {
public static final String connected_FIELDNAME = "connected"; public static final String connected_FIELDNAME = "connected";
@FieldDescribe("是否已经完整填写了From和Arrived.") @FieldDescribe("是否已经完整填写了From和Arrived.")
@Column(name = ColumnNamePrefix + connected_FIELDNAME) @Column(name = ColumnNamePrefix + connected_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + connected_FIELDNAME)
@CheckPersist(allowEmpty = false) @CheckPersist(allowEmpty = false)
private Boolean connected; private Boolean connected;
......
...@@ -380,13 +380,11 @@ public class Agent extends Activity { ...@@ -380,13 +380,11 @@ public class Agent extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -213,7 +213,6 @@ public class ApplicationDictItem extends DataItem { ...@@ -213,7 +213,6 @@ public class ApplicationDictItem extends DataItem {
private Date timeValue; private Date timeValue;
@Column(name = ColumnNamePrefix + booleanValue_FIELDNAME) @Column(name = ColumnNamePrefix + booleanValue_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + booleanValue_FIELDNAME)
private Boolean booleanValue; private Boolean booleanValue;
public static final String application_FIELDNAME = "application"; public static final String application_FIELDNAME = "application";
......
...@@ -380,13 +380,11 @@ public class Begin extends Activity { ...@@ -380,13 +380,11 @@ public class Begin extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -373,13 +373,11 @@ public class Cancel extends Activity { ...@@ -373,13 +373,11 @@ public class Cancel extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -370,13 +370,11 @@ public class Choice extends Activity { ...@@ -370,13 +370,11 @@ public class Choice extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -382,13 +382,11 @@ public class Delay extends Activity { ...@@ -382,13 +382,11 @@ public class Delay extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -471,13 +471,11 @@ public class Embed extends Activity { ...@@ -471,13 +471,11 @@ public class Embed extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
...@@ -552,14 +550,12 @@ public class Embed extends Activity { ...@@ -552,14 +550,12 @@ public class Embed extends Activity {
@FieldDescribe("是否继承Data") @FieldDescribe("是否继承Data")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + inheritData_FIELDNAME) @Column(name = ColumnNamePrefix + inheritData_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + inheritData_FIELDNAME)
private Boolean inheritData; private Boolean inheritData;
public static final String inheritAttachment_FIELDNAME = "inheritAttachment"; public static final String inheritAttachment_FIELDNAME = "inheritAttachment";
@FieldDescribe("是否继承附件") @FieldDescribe("是否继承附件")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + inheritAttachment_FIELDNAME) @Column(name = ColumnNamePrefix + inheritAttachment_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + inheritAttachment_FIELDNAME)
private Boolean inheritAttachment; private Boolean inheritAttachment;
public static final String embedCreatorType_FIELDNAME = "embedCreatorType"; public static final String embedCreatorType_FIELDNAME = "embedCreatorType";
......
...@@ -373,13 +373,11 @@ public class End extends Activity { ...@@ -373,13 +373,11 @@ public class End extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -382,13 +382,11 @@ public class Invoke extends Activity { ...@@ -382,13 +382,11 @@ public class Invoke extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -370,13 +370,11 @@ public class Manual extends Activity { ...@@ -370,13 +370,11 @@ public class Manual extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -379,13 +379,11 @@ public class Merge extends Activity { ...@@ -379,13 +379,11 @@ public class Merge extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -371,13 +371,11 @@ public class Parallel extends Activity { ...@@ -371,13 +371,11 @@ public class Parallel extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -96,8 +96,8 @@ public class Process extends SliceJpaObject { ...@@ -96,8 +96,8 @@ public class Process extends SliceJpaObject {
} }
} }
@FieldDescribe("启用同步到自建表.")
public static final String UPDATETABLEENABLE_FIELDNAME = "updateTableEnable"; public static final String UPDATETABLEENABLE_FIELDNAME = "updateTableEnable";
@FieldDescribe("启用同步到自建表.")
@Transient @Transient
private Boolean updateTableEnable; private Boolean updateTableEnable;
...@@ -110,8 +110,8 @@ public class Process extends SliceJpaObject { ...@@ -110,8 +110,8 @@ public class Process extends SliceJpaObject {
this.getProperties().setUpdateTableEnable(updateTableEnable); this.getProperties().setUpdateTableEnable(updateTableEnable);
} }
@FieldDescribe("同步到自建表.")
public static final String UPDATETABLELIST_FIELDNAME = "updateTableList"; public static final String UPDATETABLELIST_FIELDNAME = "updateTableList";
@FieldDescribe("同步到自建表.")
@Transient @Transient
private List<String> updateTableList; private List<String> updateTableList;
......
...@@ -129,7 +129,6 @@ public class QueryStat extends SliceJpaObject { ...@@ -129,7 +129,6 @@ public class QueryStat extends SliceJpaObject {
@FieldDescribe("是否是定时任务.") @FieldDescribe("是否是定时任务.")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + timingEnable_FIELDNAME) @Column(name = ColumnNamePrefix + timingEnable_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + timingEnable_FIELDNAME)
private Boolean timingEnable; private Boolean timingEnable;
public static final String timingInterval_FIELDNAME = "timingInterval"; public static final String timingInterval_FIELDNAME = "timingInterval";
......
...@@ -108,7 +108,6 @@ public class QueryView extends SliceJpaObject { ...@@ -108,7 +108,6 @@ public class QueryView extends SliceJpaObject {
@FieldDescribe("是否是定时任务.") @FieldDescribe("是否是定时任务.")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + timingEnable_FIELDNAME) @Column(name = ColumnNamePrefix + timingEnable_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + timingEnable_FIELDNAME)
private Boolean timingEnable; private Boolean timingEnable;
public static final String timingTouch_FIELDNAME = "timingTouch"; public static final String timingTouch_FIELDNAME = "timingTouch";
...@@ -258,7 +257,6 @@ public class QueryView extends SliceJpaObject { ...@@ -258,7 +257,6 @@ public class QueryView extends SliceJpaObject {
public static final String display_FIELDNAME = "display"; public static final String display_FIELDNAME = "display";
@FieldDescribe("是否前端可见.") @FieldDescribe("是否前端可见.")
@Column(name = ColumnNamePrefix + display_FIELDNAME) @Column(name = ColumnNamePrefix + display_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + display_FIELDNAME)
private Boolean display; private Boolean display;
public String getName() { public String getName() {
......
...@@ -118,18 +118,18 @@ public class Route extends SliceJpaObject { ...@@ -118,18 +118,18 @@ public class Route extends SliceJpaObject {
this.getProperties().setDefaultSelected(defaultSelected); this.getProperties().setDefaultSelected(defaultSelected);
} }
@FieldDescribe("是否启用异步返回.")
public static final String ASYNCSUPPORTED_FIELDNAME = "asyncSupported"; public static final String ASYNCSUPPORTED_FIELDNAME = "asyncSupported";
@FieldDescribe("是否启用异步返回.")
@Transient @Transient
private Boolean asyncSupported; private Boolean asyncSupported;
@FieldDescribe("选择优先路由时是否直接执行路由(一票否决),默认null.")
public static final String SOLEDIRECT_FIELDNAME = "soleDirect"; public static final String SOLEDIRECT_FIELDNAME = "soleDirect";
@FieldDescribe("选择优先路由时是否直接执行路由(一票否决),默认null.")
@Transient @Transient
private Boolean soleDirect; private Boolean soleDirect;
@FieldDescribe("默认选中的路由.")
public static final String DEFAULTSELECTED_FIELDNAME = "defaultSelected"; public static final String DEFAULTSELECTED_FIELDNAME = "defaultSelected";
@FieldDescribe("默认选中的路由.")
@Transient @Transient
private Boolean defaultSelected; private Boolean defaultSelected;
......
...@@ -379,13 +379,11 @@ public class Service extends Activity { ...@@ -379,13 +379,11 @@ public class Service extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
...@@ -383,13 +383,11 @@ public class Split extends Activity { ...@@ -383,13 +383,11 @@ public class Split extends Activity {
@FieldDescribe("允许调度") @FieldDescribe("允许调度")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowReroute_FIELDNAME) @Column(name = ColumnNamePrefix + allowReroute_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowReroute_FIELDNAME)
private Boolean allowReroute; private Boolean allowReroute;
@FieldDescribe("允许调度到此节点") @FieldDescribe("允许调度到此节点")
@CheckPersist(allowEmpty = true) @CheckPersist(allowEmpty = true)
@Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME) @Column(name = ColumnNamePrefix + allowRerouteTo_FIELDNAME)
@Index(name = TABLE + IndexNameMiddle + allowRerouteTo_FIELDNAME)
private Boolean allowRerouteTo; private Boolean allowRerouteTo;
@FieldDescribe("允许挂起") @FieldDescribe("允许挂起")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册