日期:2014-05-20 浏览次数:21331 次
public class Net_User implements java.io.Serializable {
// Fields
private Integer id;
private String username;
private String password;
private Set Net_Roles = new HashSet(0);
// Constructors
/** default constructor */
public Net_User() {
}
/** full constructor */
public Net_User(String username, String password) {
this.username = username;
this.password = password;
this.Net_Roles=Net_Roles;
}
// Property accessors
public Set<Net_Role> getNet_Roles() {
return Net_Roles;
}
public void setNet_Roles(Set netRoles) {
Net_Roles = netRoles;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
}
public class Net_Role implements java.io.Serializable {
// Fields
private Integer id;
private String roleName;
private Set<Net_User> Net_Users = new HashSet(0);
// Constructors
/** default constructor */
public Net_Role() {
}
/** full constructor */
public Net_Role(String roleName) {
this.roleName = roleName;
this.Net_Users=Net_Users;
}
// Property accessors
public Set<Net_User> getNet_Users() {
return Net_Users;
}
public void setNet_Users(Set<Net_User> netUsers) {
Net_Users = netUsers;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getRoleName() {
return this.roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;