日期:2014-05-18 浏览次数:20629 次
public class DefaultEntity implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private long id;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
}
@Entity
@Table(name="oa_member")
public class Member extends DefaultEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@Column(length=20)
private String name; //姓名
private String username; //登录名
private String password; //密码
private long roleId;
@Transient
private Role role;
//角色