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