1
2
3
4
5
6
7
8
9 package ejava.projects.eleague.dto;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlAttribute;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlIDREF;
16 import javax.xml.bind.annotation.XmlRootElement;
17 import javax.xml.bind.annotation.XmlSchemaType;
18 import javax.xml.bind.annotation.XmlType;
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "", propOrder = {
43 "team"
44 })
45 @XmlRootElement(name = "team-season")
46 public class TeamSeason
47 extends ReferencedType
48 {
49
50 @XmlElement(required = true)
51 @XmlIDREF
52 @XmlSchemaType(name = "IDREF")
53 protected Object team;
54 @XmlAttribute(name = "id", required = true)
55 protected long id;
56
57
58
59
60
61 public TeamSeason() {
62 super();
63 }
64
65
66
67
68
69 public TeamSeason(final String refid, final Object team, final long id) {
70 super(refid);
71 this.team = team;
72 this.id = id;
73 }
74
75
76
77
78
79
80
81
82
83 public Object getTeam() {
84 return team;
85 }
86
87
88
89
90
91
92
93
94
95 public void setTeam(Object value) {
96 this.team = value;
97 }
98
99
100
101
102
103 public long getId() {
104 return id;
105 }
106
107
108
109
110
111 public void setId(long value) {
112 this.id = value;
113 }
114
115 }