pull/1/head
rekoe 2016-03-23 14:00:23 +08:00
parent b8aed99830
commit 8d8f6b625d
3 changed files with 22 additions and 94 deletions

View File

@ -4,6 +4,7 @@ import java.io.Serializable;
import org.nutz.dao.entity.annotation.Comment; import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Name; import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table; import org.nutz.dao.entity.annotation.Table;
/** /**
@ -44,7 +45,7 @@ public class Pj implements Serializable{
/** /**
* *
*/ */
@Comment @Readonly
private boolean manager; private boolean manager;
/** /**

View File

@ -2,15 +2,9 @@ package com.rekoe.domain;
import java.io.Serializable; import java.io.Serializable;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;
/** /**
* *
*/ */
@Table("pj_auth")
@PK({ "pj", "res", "gr" })
public class PjAuth implements Serializable { public class PjAuth implements Serializable {
/** /**
* *
@ -19,37 +13,30 @@ public class PjAuth implements Serializable {
/** /**
* *
*/ */
@Comment
private String res; private String res;
/** /**
* *
*/ */
@Comment
private String pj; private String pj;
/** /**
* *
*/ */
@Comment
private String gr; private String gr;
/** /**
* *
*/ */
@Comment
private String usr; private String usr;
/** /**
* *
*/ */
@Comment
private String usrName; private String usrName;
/** /**
* r : ; w : * r : ; w :
*/ */
@Comment
private String rw; private String rw;
/** /**
* *
*/ */
@Comment
private String des; private String des;
/** /**

View File

@ -6,6 +6,7 @@ import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Index; import org.nutz.dao.entity.annotation.Index;
import org.nutz.dao.entity.annotation.Name; import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.PK; import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table; import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.TableIndexes; import org.nutz.dao.entity.annotation.TableIndexes;
@ -31,106 +32,45 @@ public class PjUsr implements Serializable {
*/ */
@Name @Name
private String usr; private String usr;
/**
*
*/
@Column
private String name;
/** /**
* () * ()
*/ */
@Column @Column
private String psw; private String psw;
/**
*
*/
@Column
private String role;
@Column @Readonly
private String email; private String name;
/**
* @return ID
*/
public String getUsr() {
return usr;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
/**
* @param usr
* ID
*/
public void setUsr(String usr) {
this.usr = usr;
}
/**
* @return
*/
public String getName() { public String getName() {
return name; return name;
} }
/**
* @param name
*
*/
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
/**
* @return ()
*/
public String getPsw() {
return psw;
}
/**
* @param psw
* ()
*/
public void setPsw(String psw) {
this.psw = psw;
}
/**
* @return
*/
public String getRole() {
return role;
}
/**
* @param role
*
*/
public void setRole(String role) {
this.role = role;
}
/**
* @return ID
*/
public String getPj() { public String getPj() {
return pj; return pj;
} }
/**
* @param pj
* ID
*/
public void setPj(String pj) { public void setPj(String pj) {
this.pj = pj; this.pj = pj;
} }
public String getUsr() {
return usr;
}
public void setUsr(String usr) {
this.usr = usr;
}
public String getPsw() {
return psw;
}
public void setPsw(String psw) {
this.psw = psw;
}
} }