public class MembershipEntity extends Object implements Serializable, PersistentObject
Modifier and Type | Field and Description |
---|---|
protected GroupEntity |
group |
protected UserEntity |
user |
Constructor and Description |
---|
MembershipEntity() |
Modifier and Type | Method and Description |
---|---|
GroupEntity |
getGroup() |
String |
getId() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
UserEntity |
getUser() |
void |
setGroup(GroupEntity group) |
void |
setId(String id) |
void |
setUser(UserEntity user) |
String |
toString() |
protected UserEntity user
protected GroupEntity group
public Object getPersistentState()
PersistentObject
getPersistentState
in interface PersistentObject
public String getId()
getId
in interface PersistentObject
public void setId(String id)
setId
in interface PersistentObject
public UserEntity getUser()
public void setUser(UserEntity user)
public GroupEntity getGroup()
public void setGroup(GroupEntity group)
Copyright © 2015. All rights reserved.