diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/bean/BaseBean.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/bean/BaseBean.java index 6f6fcb2..58fc14d 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/bean/BaseBean.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/bean/BaseBean.java @@ -22,14 +22,13 @@ import java.io.Serializable; * @Modify: **/ @Data -@Entity +@MappedSuperclass +//@Entity //以子类table为准 -@javax.persistence.Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) +//@javax.persistence.Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) //@JsonInclude(value = JsonInclude.Include.NON_EMPTY) //""或null属性不参加序列转换 public abstract class BaseBean implements Serializable { - private static final long serialVersionUID = 1L; - //此处使用hibernate的主键策略方式 //手动设置,使用iplus-platform-common中的idtool生成 //将Long类型系列化成String避免精度丢失 @@ -130,7 +129,7 @@ public abstract class BaseBean implements Serializable { @ApiParam(value = "排序类型,1 正序,2 倒序",example = "1") @AnnoOutputColumn(hidden = true) //CommonEnumUtil.ASC_OR_DESC 1 asc,2 desc - public Integer ascOrDesc = 1; + public transient Integer ascOrDesc = 1; //排序方式 public String orderBy(){