@Entity(name="Sport") public class Sport extends Object
| Constructor and Description |
|---|
Sport()
Empty constructor for JPA
|
Sport(String a) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompetition(Competition c)
Add a competition to the LinkedList of competitions of this sport
|
List<Competition> |
getCompetitions()
Get competitions of this sport
|
String |
getName()
Get the name of the sport
|
void |
setName(String n)
Set the name of this sport
|
public Sport()
public Sport(String a)
public String getName()
public void setName(String n)
n - String with the namepublic void addCompetition(Competition c)
c - One competition to add to the LinkedListCompetitionpublic List<Competition> getCompetitions()
CompetitionCopyright © 2018. All rights reserved.