@Table("test")
public class Test extends BaseModel implements Serializable {
@Id
@ColDefine(width = 20)
private Integer id;
@Column
@ColDefine(type = ColType.VARCHAR,width = 32)
private String name;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
6 回复
package cn.wizzer.app.sys.modules.models;
import cn.wizzer.framework.base.model.BaseModel;
import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
@Table("test")
public class Test extends BaseModel implements Serializable {
@Id
@ColDefine(width = 20,type = ColType.INT)
private Integer id;
@Column
@ColDefine(type = ColType.VARCHAR,width = 32)
private String name;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.505 s
[INFO] Finished at: 2019-04-22T15:44:41+08:00
[INFO] ------------------------------------------------------------------------
还是不行
添加回复
请先登陆