|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OwnableData
An ownable item is an item which has an owner. The owner is
represented as a required association to a UserData
object.
This interface defines Hibernate database mappings for the
owner property to the database column with the
same name. If a subclass wants to map the property to another column,
it should override the getOwner() method and add a
Hibernate tag in the comment.
Reference implementation
private UserData owner;
public UserData getOwner()
{
return owner;
}
public void setOwner(UserData owner)
{
this.owner = owner;
}
OwnedData,
Ownable,
Developer documentation: User authentication,
Developer documentation: Basic classes and interfaces| Method Summary | |
|---|---|
UserData |
getOwner()
Get the UserData that is the owner of the item. |
void |
setOwner(UserData owner)
Change the owner of the item. |
| Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
|---|
getId, getVersion |
| Method Detail |
|---|
UserData getOwner()
UserData that is the owner of the item.
void setOwner(UserData owner)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||