@Entity(name="AffinityGroup") public final class PersistentAffinityGroup extends Object implements com.bernardomg.tabletop.dreadball.model.unit.AffinityGroup, Serializable
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
PersistentAffinityGroup()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getId()
Returns the ID assigned to this entity.
|
String |
getName() |
int |
hashCode() |
void |
setAffinityGroupName(String nameAffinity)
Sets the affinity group's name.
|
void |
setId(Integer identifier)
Sets the ID assigned to this entity.
|
String |
toString() |
public final Integer getId()
public final String getName()
getName in interface com.bernardomg.tabletop.dreadball.model.unit.AffinityGrouppublic final void setAffinityGroupName(String nameAffinity)
nameAffinity - the affinity group's namepublic final void setId(Integer identifier)
identifier - the ID for the entityCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.