data.sql et bug Boolean null

This commit is contained in:
Thomas Cardon 2022-02-14 17:30:49 +01:00
parent 8f0cbdb758
commit 1f5f94ac63
2 changed files with 58 additions and 19 deletions

View file

@ -26,10 +26,10 @@ public class Restaurant {
private String nom;
private String adresse;
private String telephone;
private boolean aEmporter;
private boolean surPlace;
private int prix;
private boolean accesPMR;
private Boolean aEmporter;
private Boolean surPlace;
private Integer prix;
private Boolean accesPMR;
private String latitude;
private String longitude;
private String website;
@ -42,8 +42,8 @@ public class Restaurant {
// TODO Auto-generated constructor stub
}
public Restaurant(String nom, String adresse, String telephone, boolean aEmporter, boolean surPlace, int prix,
boolean accesPMR, String latitude, String longitude, String website, Collection<TypeRestau> typerestaus) {
public Restaurant(String nom, String adresse, String telephone, Boolean aEmporter, Boolean surPlace, int prix,
Boolean accesPMR, String latitude, String longitude, String website, Collection<TypeRestau> typerestaus) {
super();
this.nom = nom;
this.adresse = adresse;
@ -91,31 +91,31 @@ public class Restaurant {
this.telephone = telephone;
}
@Column(nullable = true)
public boolean isaEmporter() {
public Boolean isaEmporter() {
return aEmporter;
}
public void setaEmporter(boolean aEmporter) {
public void setaEmporter(Boolean aEmporter) {
this.aEmporter = aEmporter;
}
@Column(nullable = true)
public boolean isSurPlace() {
public Boolean isSurPlace() {
return surPlace;
}
public void setSurPlace(boolean surPlace) {
public void setSurPlace(Boolean surPlace) {
this.surPlace = surPlace;
}
@Column(nullable = true)
public int getPrix() {
public Integer getPrix() {
return prix;
}
public void setPrix(int prix) {
public void setPrix(Integer prix) {
this.prix = prix;
}
@Column(nullable = true)
public boolean isAccesPMR() {
public Boolean isAccesPMR() {
return accesPMR;
}
public void setAccesPMR(boolean accesPMR) {
public void setAccesPMR(Boolean accesPMR) {
this.accesPMR = accesPMR;
}
@Column(nullable = false)