实体类Right中包含view字段,映射数据库right_view,在insert时,对应的view字段被自动设置为"Entity<com.xiaoU.wswx.domain.Right:nftm_right>"
编辑没有问题,求解
15 回复
@wendal
// 参数设置
right.setView("tablegroup");
rightService.add(right);
// 控制台打印
INSERT INTO nftm_right(id,right_id,right_name,right_view,right_img,right_option,right_type,right_color,parent_id,rank,remark,state,sort) VALUES('3ec9d6baaa4111e694ef19d65802e9b7','123','123','Entity<com.xiaoU.wswx.domain.Right:nftm_right>','','','','','-1',2,'',1,0)
@wendal
@Table("nftm_right")
public class Right extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@Name
@Prev(els = @EL("$me.getUUId()"))
private String id;
@Column("right_id")
private String rightId;
@Column("right_name")
private String name;
@Column("right_view")
private String view;
@Column("right_img")
private String img;
@Column("right_option")
private String option;
@Column("right_type")
private String type;
@Column("right_color")
private String color;
@Column("parent_id")
private String parentId;
@Column
private int rank;
@Column
private String remark;
@Column
private int state;
@Column
private long sort;
@Readonly
@Column
private String parentName;
get/set略
@wendal
不影响吧,都是一些父类
public class BaseEntity implements DomainUUIDEntity,Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer page;
private Integer pageSize;
get/set略
}
public interface DomainUUIDEntity {
String getUUId();
}
@wendal 能复现么
添加回复
请先登陆