Commit ca987b93 authored by Bane's avatar Bane

update Poubelle model

parent 258c7e20
...@@ -14,14 +14,34 @@ public class Poubelle implements Serializable{ ...@@ -14,14 +14,34 @@ public class Poubelle implements Serializable{
@Id @Id
@GeneratedValue @GeneratedValue
private Long id ; private Long id ;
private Long longitude ; private Double longitude ;
private Long latitude ; private Double latitude ;
private Long capacity ; private Double capacity ;
private String adresse;
private Double contenu;
public Poubelle(Long id, Double longitude, Double latitude, Double capacity, String adresse, Double contenu) {
super();
this.longitude = longitude;
this.latitude = latitude;
this.capacity = capacity;
this.adresse = adresse;
this.contenu = contenu;
}
public Poubelle(Long id, Double longitude, Double latitude, Double capacity, String adresse) {
super();
this.id = id;
this.longitude = longitude;
this.latitude = latitude;
this.capacity = capacity;
this.adresse = adresse;
}
public Poubelle() { public Poubelle() {
super(); super();
} }
public Poubelle(Long id, Long longitude, Long latitude, Long capacity) { public Poubelle(Long id, Double longitude, Double latitude, Double capacity) {
super(); super();
this.id = id; this.id = id;
this.longitude = longitude; this.longitude = longitude;
...@@ -34,28 +54,50 @@ public class Poubelle implements Serializable{ ...@@ -34,28 +54,50 @@ public class Poubelle implements Serializable{
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Long getLongitude() { public Double getLongitude() {
return longitude; return longitude;
} }
public void setLongitude(Long longitude) { public void setLongitude(Double longitude) {
this.longitude = longitude; this.longitude = longitude;
} }
public Long getLatitude() { public Double getLatitude() {
return latitude; return latitude;
} }
public void setLatitude(Long latitude) { public void setLatitude(Double latitude) {
this.latitude = latitude; this.latitude = latitude;
} }
public Long getCapacity() { public Double getCapacity() {
return capacity; return capacity;
} }
public void setCapacity(Long capacity) { public void setCapacity(Double capacity) {
this.capacity = capacity; this.capacity = capacity;
} }
public String getAdresse() {
return adresse;
}
public void setAdresse(String adresse) {
this.adresse = adresse;
}
public Double getContenu() {
return contenu;
}
public void setContenu(Double contenu) {
this.contenu = contenu;
}
@Override @Override
public String toString() { public String toString() {
return "Poubelle [id=" + id + ", longitude=" + longitude + ", latitude=" + latitude + ", capacity=" + capacity return "Poubelle{" +
+ "]"; "id=" + id +
} ", longitude=" + longitude +
", latitude=" + latitude +
", capacity=" + capacity +
", adresse='" + adresse + '\'' +
", contenu=" + contenu +
'}';
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment