/sun/hostcaptain/trunk/src/ak/hostcaptain/core/model/SystemUser.java |
---|
14,6 → 14,7 |
/** user id in the OS */ |
private Integer uid; |
private String name; |
private User owner; |
private Date modStamp; |
protected SystemUser() |
61,7 → 62,21 |
{ |
this.name = name; |
} |
/** |
* |
* @hibernate.many-to-one |
*/ |
public User getOwner() |
{ |
return owner; |
} |
public void setOwner(User owner) |
{ |
this.owner = owner; |
} |
/** |
* |
* @hibernate.timestamp column="mod_stamp" |
/sun/hostcaptain/trunk/src/ak/hostcaptain/core/model/User.java |
---|
10,10 → 10,12 |
public class User |
implements ModelObject |
{ |
private Long id; |
private String login; |
private String password; |
private Date modStamp; |
private Long id; |
private String login; |
private String password; |
private User boss; |
private Boolean superuser; |
private Date modStamp; |
protected User() |
{ |
81,7 → 83,35 |
{ |
return this.password.equals(password); |
} |
/** |
* |
* @hibernate.many-to-one |
*/ |
public User getBoss() |
{ |
return boss; |
} |
public void setBoss(User boss) |
{ |
this.boss = boss; |
} |
/** |
* |
* @hibernate.property |
*/ |
public Boolean getSuperuser() |
{ |
return superuser; |
} |
public void setSuperuser(Boolean superuser) |
{ |
this.superuser = superuser; |
} |
/** |
* |
* @hibernate.timestamp column="mod_stamp" |