Commit ca987b93 authored by Bane's avatar Bane

update Poubelle model

parent 258c7e20
......@@ -14,14 +14,34 @@ public class Poubelle implements Serializable{
@Id
@GeneratedValue
private Long id ;
private Long longitude ;
private Long latitude ;
private Long capacity ;
private Double longitude ;
private Double latitude ;
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() {
super();
}
public Poubelle(Long id, Long longitude, Long latitude, Long capacity) {
public Poubelle(Long id, Double longitude, Double latitude, Double capacity) {
super();
this.id = id;
this.longitude = longitude;
......@@ -34,28 +54,50 @@ public class Poubelle implements Serializable{
public void setId(Long id) {
this.id = id;
}
public Long getLongitude() {
public Double getLongitude() {
return longitude;
}
public void setLongitude(Long longitude) {
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public Long getLatitude() {
public Double getLatitude() {
return latitude;
}
public void setLatitude(Long latitude) {
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public Long getCapacity() {
public Double getCapacity() {
return capacity;
}
public void setCapacity(Long capacity) {
public void setCapacity(Double 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
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