1 | public class Student {↵ | | 1 | public class Stock {↵
|
2 | private long studentNumber;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String ↵
|
4 | private Course preferredCourse↵ | | 4 | tradeSymbol;↵
|
5 | ;↵ | | 5 | private Valuation currentValuation;↵
|
6 | private Set enrolments = new HashSet();↵ | | 6 | private Set valuations = new HashSet();↵
|
|
7 | public String getName() {↵ | | 7 | public Long getId() {↵
|
8 | return name;↵ | | 8 | return id;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void setName(String name) {↵ | | 10 | public void set↵
|
11 | this.name = name↵ | | 11 | Id(Long id) {↵
|
12 | ;↵ | | 12 | this.id = id;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public long getStudentNumber() {↵ | | 14 | public String getTradeSymbol() {↵
|
15 | return studentNumber;↵ | | 15 | return tradeSymbol;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void setStudentNumber(long studentNumber) {↵ | | 17 | public void set↵
|
18 | this.studentNumber = studentNumber;↵ | | |
|
19 | }↵ | | |
|
|
20 | public Course getPreferredCourse() {↵ | | |
|
21 | return preferredCourse↵ | | 18 | TradeSymbol(String tradeSymbol) {↵
|
| | | 19 | this.tradeSymbol = tradeSymbol;↵
|
| | | 20 | }↵
|
|
| | | 21 | public Valuation getCurrentValuation() {↵
|
22 | ;↵ | | 22 | return currentValuation;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public void setPreferredCourse(Course preferredCourse) {↵ | | 24 | public void set↵
|
25 | this.preferredCourse = preferredCourse↵ | | 25 | CurrentValuation(Valuation currentValuation) {↵
|
26 | ;↵ | | 26 | this.currentValuation = currentValuation;↵
|
27 | }↵ | | 27 | }↵
|
|
28 | public Set getEnrolments() {↵ | | 28 | public Set getValuations() {↵
|
29 | return enrolments;↵ | | 29 | return valuations;↵
|
30 | }↵ | | 30 | }↵
|
|
31 | public void setEnrolments(Set employments) {↵ | | 31 | public void setValuations(Set valuations) {↵
|
32 | this.enrolments = employments | | 32 | this.valuations = valuations
|