|
@@ -10,8 +10,8 @@ public class Student {
|
|
|
@Id
|
|
@Id
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
private Long id;
|
|
private Long id;
|
|
|
- private String firstName;
|
|
|
|
|
- private String lastName;
|
|
|
|
|
|
|
+ private String firstname;
|
|
|
|
|
+ private String lastname;
|
|
|
|
|
|
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
|
@JoinColumn(name = "account_id")
|
|
@JoinColumn(name = "account_id")
|
|
@@ -23,10 +23,10 @@ public class Student {
|
|
|
|
|
|
|
|
public Student() {}
|
|
public Student() {}
|
|
|
|
|
|
|
|
- public Student(Long id, String firstName, String lastName, String email) {
|
|
|
|
|
|
|
+ public Student(Long id, String firstname, String lastname, String email) {
|
|
|
this.id = id;
|
|
this.id = id;
|
|
|
- this.firstName = firstName;
|
|
|
|
|
- this.lastName = lastName;
|
|
|
|
|
|
|
+ this.firstname = firstname;
|
|
|
|
|
+ this.lastname = lastname;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Long getId() {
|
|
public Long getId() {
|
|
@@ -38,19 +38,19 @@ public class Student {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getFirstName() {
|
|
public String getFirstName() {
|
|
|
- return firstName;
|
|
|
|
|
|
|
+ return firstname;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setFirstName(String firstName) {
|
|
|
|
|
- this.firstName = firstName;
|
|
|
|
|
|
|
+ public void setFirstName(String firstname) {
|
|
|
|
|
+ this.firstname = firstname;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getLastName() {
|
|
public String getLastName() {
|
|
|
- return lastName;
|
|
|
|
|
|
|
+ return lastname;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setLastName(String lastName) {
|
|
|
|
|
- this.lastName = lastName;
|
|
|
|
|
|
|
+ public void setLastName(String lastname) {
|
|
|
|
|
+ this.lastname = lastname;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Account getAccount() {
|
|
public Account getAccount() {
|