Update Loan.java

develop
@Territory91 5 years ago
parent 7a24c956b8
commit b9dfb8e48b
  1. 31
      mivan/src/main/java/mivan/model/Loan.java

@ -35,11 +35,13 @@ public class Loan {
@JoinColumn(name = "user") @JoinColumn(name = "user")
private User user; private User user;
public Loan(long id, String date_start, String date_end, String state) { public Loan(String date_start, String date_end, String state, Item item, Staff staff, User user) {
this.id = id;
this.date_start = date_start; this.date_start = date_start;
this.date_end = date_end; this.date_end = date_end;
this.state = state; this.state = state;
this.item = item;
this.staff = staff;
this.user = user;
} }
public long getId() { public long getId() {
@ -58,6 +60,18 @@ public class Loan {
return state; return state;
} }
public Item getItem() {
return item;
}
public Staff getStaff() {
return staff;
}
public User getUser() {
return user;
}
public void setId(long id) { public void setId(long id) {
this.id = id; this.id = id;
} }
@ -74,18 +88,6 @@ public class Loan {
this.state = state; this.state = state;
} }
public Item getItem() {
return item;
}
public Staff getStaff() {
return staff;
}
public User getUser() {
return user;
}
public void setItem(Item item) { public void setItem(Item item) {
this.item = item; this.item = item;
} }
@ -98,5 +100,4 @@ public class Loan {
this.user = user; this.user = user;
} }
} }

Loading…
Cancel
Save