@Entity(name="SPORT") public class SportJPA extends Object
| Constructor and Description |
|---|
SportJPA()
Empty constructor for JPA
|
SportJPA(String a) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompetition(CompetitionJPA c)
Add a competition to the LinkedList of competitions of this sport
|
List<CompetitionJPA> |
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 SportJPA()
public SportJPA(String a)
public String getName()
public void setName(String n)
n - String with the namepublic void addCompetition(CompetitionJPA c)
c - One competition to add to the LinkedListCompetitionJPApublic List<CompetitionJPA> getCompetitions()
CompetitionJPACopyright © 2017. All rights reserved.