提交 a65af4d7 编写于 作者: O o2null

Merge branch 'feature/listEntity' into 'develop'

添加entity schema

See merge request o2oa/o2oa!889
......@@ -17,6 +17,8 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceDetail", description = "考勤钉钉信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceDingtalkDetail.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceDingtalkDetail.table
......
package com.x.attendance.entity;
import java.util.Date;
import javax.persistence.Column;
......@@ -17,208 +16,211 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceDetail", description = "考勤企业微信信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceQywxDetail.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceQywxDetail.table
+ JpaObject.IndexNameMiddle + JpaObject.DefaultUniqueConstraintSuffix, columnNames = { JpaObject.IDCOLUMN,
JpaObject.CREATETIMECOLUMN, JpaObject.UPDATETIMECOLUMN, JpaObject.SEQUENCECOLUMN }))
+ JpaObject.IndexNameMiddle + JpaObject.DefaultUniqueConstraintSuffix, columnNames = { JpaObject.IDCOLUMN,
JpaObject.CREATETIMECOLUMN, JpaObject.UPDATETIMECOLUMN, JpaObject.SEQUENCECOLUMN }))
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class AttendanceQywxDetail extends SliceJpaObject {
private static final long serialVersionUID = -1447276817950216827L;
private static final String TABLE = PersistenceProperties.AttendanceQywxDetail.table;
@Override
public void onPersist() throws Exception {
}
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
@FieldDescribe("数据库主键,自动生成.")
@Id
@Column(length = length_id, name = ColumnNamePrefix + id_FIELDNAME)
private String id = createId();
/*
* =============================================================================
* ===== 以上为 JpaObject 默认字段
* =============================================================================
* =====
*/
public static final String o2User_FIELDNAME = "o2User";
@FieldDescribe("O2用户distinguishedName")
@Column(name = ColumnNamePrefix + o2User_FIELDNAME, length = AbstractPersistenceProperties.organization_name_length)
private String o2User;
public static final String o2Unit_FIELDNAME = "o2Unit";
@FieldDescribe("O2用户所在的组织distinguishedName")
@Column(name = ColumnNamePrefix + o2Unit_FIELDNAME, length = AbstractPersistenceProperties.organization_name_length)
private String o2Unit;
public static final String userid_FIELDNAME = "userid";
@FieldDescribe("用户id")
@Column(name = ColumnNamePrefix + userid_FIELDNAME, length = length_96B)
private String userid;
public static final String groupname_FIELDNAME = "groupname";
@FieldDescribe("打卡规则名称")
@Column(name = ColumnNamePrefix + groupname_FIELDNAME, length = length_128B)
private String groupname;
//打卡类型
public static final String CHECKIN_TYPE_ON = "上班打卡";
public static final String CHECKIN_TYPE_OFF = "下班打卡";
public static final String CHECKIN_TYPE_OUTSIDE = "外出打卡";
public static final String checkin_type_FIELDNAME = "checkin_type";
@FieldDescribe("打卡类型。字符串,目前有:上班打卡,下班打卡,外出打卡")
@Column(name = ColumnNamePrefix + checkin_type_FIELDNAME, length = length_128B)
private String checkin_type;
public static final String checkin_time_FIELDNAME = "checkin_time";
@FieldDescribe("打卡时间。Unix时间戳")
@Column(name = ColumnNamePrefix + checkin_time_FIELDNAME )
private long checkin_time;
public static final String checkin_time_date_FIELDNAME = "checkin_time_date";
@FieldDescribe("实际打卡时间, 用Date格式存储")
@Column(name = ColumnNamePrefix + checkin_time_date_FIELDNAME )
private Date checkin_time_date;
//异常类型
public static final String EXCEPTION_TYPE_TIME = "时间异常";
public static final String EXCEPTION_TYPE_ADDRESS = "地点异常";
public static final String EXCEPTION_TYPE_WIFI = "wifi异常";
public static final String EXCEPTION_TYPE_UNKOWN_DEVICE = "非常用设备";
public static final String EXCEPTION_TYPE_NOSIGN = "未打卡";
public static final String EXCEPTION_TYPE_NORMAL = "正常";
public static final String exception_type_FIELDNAME = "exception_type";
@FieldDescribe("异常类型,字符串,包括:时间异常,地点异常,未打卡,wifi异常,非常用设备。如果有多个异常,以分号间隔")
@Column(name = ColumnNamePrefix + exception_type_FIELDNAME, length = length_255B)
private String exception_type;
public static final String location_title_FIELDNAME = "location_title";
@FieldDescribe("打卡地点title")
@Column(name = ColumnNamePrefix + location_title_FIELDNAME, length = length_255B)
private String location_title;
public static final String location_detail_FIELDNAME = "location_detail";
@FieldDescribe("打卡地点详情")
@Column(name = ColumnNamePrefix + location_detail_FIELDNAME, length = length_255B)
private String location_detail;
public static final String wifiname_FIELDNAME = "wifiname";
@FieldDescribe("打卡wifi名称")
@Column(name = ColumnNamePrefix + wifiname_FIELDNAME, length = length_255B)
private String wifiname;
public static final String notes_FIELDNAME = "notes";
@FieldDescribe("打卡备注")
@Column(name = ColumnNamePrefix + notes_FIELDNAME, length = length_255B)
private String notes;
public String getO2User() {
return o2User;
}
public void setO2User(String o2User) {
this.o2User = o2User;
}
public String getO2Unit() {
return o2Unit;
}
public void setO2Unit(String o2Unit) {
this.o2Unit = o2Unit;
}
public Date getCheckin_time_date() {
return checkin_time_date;
}
public void setCheckin_time_date(Date checkin_time_date) {
this.checkin_time_date = checkin_time_date;
}
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getGroupname() {
return groupname;
}
public void setGroupname(String groupname) {
this.groupname = groupname;
}
public String getCheckin_type() {
return checkin_type;
}
public void setCheckin_type(String checkin_type) {
this.checkin_type = checkin_type;
}
public long getCheckin_time() {
return checkin_time;
}
public void setCheckin_time(long checkin_time) {
this.checkin_time = checkin_time;
}
public String getException_type() {
return exception_type;
}
public void setException_type(String exception_type) {
this.exception_type = exception_type;
}
public String getLocation_title() {
return location_title;
}
public void setLocation_title(String location_title) {
this.location_title = location_title;
}
public String getLocation_detail() {
return location_detail;
}
public void setLocation_detail(String location_detail) {
this.location_detail = location_detail;
}
public String getWifiname() {
return wifiname;
}
public void setWifiname(String wifiname) {
this.wifiname = wifiname;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
public class AttendanceQywxDetail extends SliceJpaObject {
private static final long serialVersionUID = -1447276817950216827L;
private static final String TABLE = PersistenceProperties.AttendanceQywxDetail.table;
@Override
public void onPersist() throws Exception {
}
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
@FieldDescribe("数据库主键,自动生成.")
@Id
@Column(length = length_id, name = ColumnNamePrefix + id_FIELDNAME)
private String id = createId();
/*
* =============================================================================
* ===== 以上为 JpaObject 默认字段
* =============================================================================
* =====
*/
public static final String o2User_FIELDNAME = "o2User";
@FieldDescribe("O2用户distinguishedName")
@Column(name = ColumnNamePrefix + o2User_FIELDNAME, length = AbstractPersistenceProperties.organization_name_length)
private String o2User;
public static final String o2Unit_FIELDNAME = "o2Unit";
@FieldDescribe("O2用户所在的组织distinguishedName")
@Column(name = ColumnNamePrefix + o2Unit_FIELDNAME, length = AbstractPersistenceProperties.organization_name_length)
private String o2Unit;
public static final String userid_FIELDNAME = "userid";
@FieldDescribe("用户id")
@Column(name = ColumnNamePrefix + userid_FIELDNAME, length = length_96B)
private String userid;
public static final String groupname_FIELDNAME = "groupname";
@FieldDescribe("打卡规则名称")
@Column(name = ColumnNamePrefix + groupname_FIELDNAME, length = length_128B)
private String groupname;
// 打卡类型
public static final String CHECKIN_TYPE_ON = "上班打卡";
public static final String CHECKIN_TYPE_OFF = "下班打卡";
public static final String CHECKIN_TYPE_OUTSIDE = "外出打卡";
public static final String checkin_type_FIELDNAME = "checkin_type";
@FieldDescribe("打卡类型。字符串,目前有:上班打卡,下班打卡,外出打卡")
@Column(name = ColumnNamePrefix + checkin_type_FIELDNAME, length = length_128B)
private String checkin_type;
public static final String checkin_time_FIELDNAME = "checkin_time";
@FieldDescribe("打卡时间。Unix时间戳")
@Column(name = ColumnNamePrefix + checkin_time_FIELDNAME)
private long checkin_time;
public static final String checkin_time_date_FIELDNAME = "checkin_time_date";
@FieldDescribe("实际打卡时间, 用Date格式存储")
@Column(name = ColumnNamePrefix + checkin_time_date_FIELDNAME)
private Date checkin_time_date;
// 异常类型
public static final String EXCEPTION_TYPE_TIME = "时间异常";
public static final String EXCEPTION_TYPE_ADDRESS = "地点异常";
public static final String EXCEPTION_TYPE_WIFI = "wifi异常";
public static final String EXCEPTION_TYPE_UNKOWN_DEVICE = "非常用设备";
public static final String EXCEPTION_TYPE_NOSIGN = "未打卡";
public static final String EXCEPTION_TYPE_NORMAL = "正常";
public static final String exception_type_FIELDNAME = "exception_type";
@FieldDescribe("异常类型,字符串,包括:时间异常,地点异常,未打卡,wifi异常,非常用设备。如果有多个异常,以分号间隔")
@Column(name = ColumnNamePrefix + exception_type_FIELDNAME, length = length_255B)
private String exception_type;
public static final String location_title_FIELDNAME = "location_title";
@FieldDescribe("打卡地点title")
@Column(name = ColumnNamePrefix + location_title_FIELDNAME, length = length_255B)
private String location_title;
public static final String location_detail_FIELDNAME = "location_detail";
@FieldDescribe("打卡地点详情")
@Column(name = ColumnNamePrefix + location_detail_FIELDNAME, length = length_255B)
private String location_detail;
public static final String wifiname_FIELDNAME = "wifiname";
@FieldDescribe("打卡wifi名称")
@Column(name = ColumnNamePrefix + wifiname_FIELDNAME, length = length_255B)
private String wifiname;
public static final String notes_FIELDNAME = "notes";
@FieldDescribe("打卡备注")
@Column(name = ColumnNamePrefix + notes_FIELDNAME, length = length_255B)
private String notes;
public String getO2User() {
return o2User;
}
public void setO2User(String o2User) {
this.o2User = o2User;
}
public String getO2Unit() {
return o2Unit;
}
public void setO2Unit(String o2Unit) {
this.o2Unit = o2Unit;
}
public Date getCheckin_time_date() {
return checkin_time_date;
}
public void setCheckin_time_date(Date checkin_time_date) {
this.checkin_time_date = checkin_time_date;
}
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getGroupname() {
return groupname;
}
public void setGroupname(String groupname) {
this.groupname = groupname;
}
public String getCheckin_type() {
return checkin_type;
}
public void setCheckin_type(String checkin_type) {
this.checkin_type = checkin_type;
}
public long getCheckin_time() {
return checkin_time;
}
public void setCheckin_time(long checkin_time) {
this.checkin_time = checkin_time;
}
public String getException_type() {
return exception_type;
}
public void setException_type(String exception_type) {
this.exception_type = exception_type;
}
public String getLocation_title() {
return location_title;
}
public void setLocation_title(String location_title) {
this.location_title = location_title;
}
public String getLocation_detail() {
return location_detail;
}
public void setLocation_detail(String location_detail) {
this.location_detail = location_detail;
}
public String getWifiname() {
return wifiname;
}
public void setWifiname(String wifiname) {
this.wifiname = wifiname;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
}
......@@ -4,9 +4,8 @@ import com.x.base.core.project.annotation.Module;
import com.x.base.core.project.annotation.ModuleCategory;
import com.x.base.core.project.annotation.ModuleType;
@Module(type = ModuleType.ASSEMBLE, category = ModuleCategory.OFFICIAL, name = "极光推送服务模块",
packageName = "com.x.jpush.assemble.control",
containerEntities = { "com.x.jpush.core.entity.SampleEntityClassName","com.x.jpush.core.entity.PushDevice" },
storeJars = { "x_organization_core_entity", "x_organization_core_express", "x_jpush_core_entity" })
@Module(type = ModuleType.ASSEMBLE, category = ModuleCategory.OFFICIAL, name = "极光推送服务模块", packageName = "com.x.jpush.assemble.control", containerEntities = {
"com.x.jpush.core.entity.PushDevice" }, storeJars = { "x_organization_core_entity",
"x_organization_core_express", "x_jpush_core_entity" })
public class x_jpush_assemble_control extends Deployable {
}
......@@ -18,6 +18,7 @@ import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 论坛权限角色绑定关系表
*
......
......@@ -18,6 +18,7 @@ import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 用户投票记录
*
......
......@@ -21,6 +21,9 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.entity.annotation.Flag;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Custom", description = "组织自定义内容.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Custom.table, uniqueConstraints = {
......
......@@ -32,6 +32,9 @@ import com.x.base.core.entity.annotation.Flag;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.base.core.project.tools.DateTools;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Role", description = "组织角色.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Role.table, uniqueConstraints = {
......
......@@ -34,7 +34,7 @@ import com.x.base.core.project.tools.DateTools;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Unit", description = "组织组织对象属性.")
@Schema(name = "UnitAttribute", description = "组织组织对象属性.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.UnitAttribute.table, uniqueConstraints = {
......
......@@ -22,6 +22,9 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.organization.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Empower", description = "组织授权.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Accredit.Empower.table, uniqueConstraints = {
......
......@@ -19,6 +19,9 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.organization.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "TokenThreshold", description = "组织令牌阈值.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.log, reference = ContainerEntity.Reference.soft)
@Table(name = PersistenceProperties.Log.TokenThreshold.table, uniqueConstraints = {
......
......@@ -29,7 +29,7 @@ import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "File", description = "门户页面.")
@Schema(name = "Page", description = "门户页面.")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Page.table, uniqueConstraints = {
......
......@@ -34,7 +34,7 @@ import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Portal", description = "门户脚本.")
@Schema(name = "Script", description = "门户脚本.")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Script.table, uniqueConstraints = {
......
......@@ -36,7 +36,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
*
* @author sword
*/
@Schema(name = "DocSign", description = "流程平台签名信息.")
@Schema(name = "DocSignScrawl", description = "流程平台批注.")
@Entity
@ContainerEntity(dumpSize = 5, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Content.DocSignScrawl.table, uniqueConstraints = {
......
......@@ -25,7 +25,7 @@ import com.x.processplatform.core.entity.element.ActivityType;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "DocSignScrawl", description = "流程平台批注.")
@Schema(name = "DocumentVersion", description = "流程平台版式文件版本.")
@Entity
@ContainerEntity(dumpSize = 5, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Content.DocumentVersion.table, uniqueConstraints = {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.processplatform.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "KeyLock", description = "流程平台抢办锁定.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Content.KeyLock.table, uniqueConstraints = {
......
......@@ -30,7 +30,7 @@ import com.x.processplatform.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Record", description = "流程平台参阅.")
@Schema(name = "Review", description = "流程平台参阅.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Content.Review.table, uniqueConstraints = {
......
......@@ -44,7 +44,7 @@ import com.x.processplatform.core.entity.element.Route;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Task", description = "待办")
@Schema(name = "Task", description = "流程平台待办.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Content.Task.table, uniqueConstraints = {
......
......@@ -36,6 +36,8 @@ import com.x.base.core.project.annotation.FieldDescribe;
import com.x.base.core.project.tools.ListTools;
import com.x.processplatform.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Agent", description = "流程平台脚本活动.")
@Entity
@ContainerEntity(dumpSize = 5, type = ContainerEntity.Type.element, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Element.Agent.table, uniqueConstraints = {
......
......@@ -14,6 +14,7 @@ import com.x.base.core.project.http.ActionResult;
import com.x.base.core.project.http.EffectivePerson;
import com.x.base.core.project.logger.Logger;
import com.x.base.core.project.logger.LoggerFactory;
import com.x.base.core.project.tools.ClassLoaderTools;
import io.swagger.v3.oas.annotations.media.Schema;
......@@ -21,10 +22,15 @@ public class ActionListEntity extends BaseAction {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionListEntity.class);
private ClassLoader classLoader;
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {
LOGGER.debug("execute:{}.", effectivePerson::getDistinguishedName);
classLoader = ClassLoaderTools.urlClassLoader(Thread.currentThread().getContextClassLoader(), true, true, true,
true);
ActionResult<List<Wo>> result = new ActionResult<>();
@SuppressWarnings("unchecked")
List<Wo> wos = ((Map<String, List<String>>) Config.resource(Config.RESOURCE_CONTAINERENTITIES)).values()
......@@ -41,7 +47,7 @@ public class ActionListEntity extends BaseAction {
Wo wo = new Wo();
wo.setValue(s);
try {
Class<?> clz = Class.forName(s);
Class<?> clz = classLoader.loadClass(s);
Schema schema = clz.getAnnotation(Schema.class);
if (null != schema) {
wo.setName(schema.description());
......
......@@ -22,7 +22,7 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Agent", description = "服务管理应用.")
@Schema(name = "Application", description = "服务管理应用.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Application.table, uniqueConstraints = {
......
......@@ -16,7 +16,7 @@ import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Attachment", description = "服务管理图片验证码.")
@Schema(name = "Captcha", description = "服务管理图片验证码.")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Captcha.table, uniqueConstraints = {
......
......@@ -15,7 +15,7 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Captcha", description = "服务管理短信验证码.")
@Schema(name = "Code", description = "服务管理短信验证码.")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Code.table, uniqueConstraints = {
......
......@@ -30,10 +30,13 @@ import com.x.base.core.entity.annotation.Equal;
import com.x.base.core.entity.annotation.Flag;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 统计对象
* @author sword
*/
@Schema(name = "Stat", description = "数据中心统计.")
@Entity
@ContainerEntity(dumpSize = 10, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Stat.table, uniqueConstraints = {
......
......@@ -25,6 +25,8 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.query.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Entry", description = "数据中心神经网络条目.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Neural.Entry.table, uniqueConstraints = {
......
......@@ -17,6 +17,8 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.query.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "OutText", description = "数据中心神经网络结果.")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Neural.OutText.table, uniqueConstraints = {
......
......@@ -32,7 +32,7 @@ import com.x.query.core.entity.PersistenceProperties;
import com.x.query.core.entity.Query;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Argument", description = "数据中心查询语句.")
@Schema(name = "Statement", description = "数据中心查询语句.")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@javax.persistence.Table(name = PersistenceProperties.Schema.Statement.table, uniqueConstraints = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册