Changing type of latitude and longitude

This commit is contained in:
BGbaderguet 2020-12-29 18:20:24 +01:00
parent 07e6033e30
commit 53a2c9f9d0

View File

@ -31,10 +31,10 @@ public class Property {
public String address;
@ColumnInfo(name = "longitude")
public long longitude;
public double longitude;
@ColumnInfo(name = "latitude")
public long latitude;
public double latitude;
@Embedded
public PropertyStatue propertyStatue;
@ -45,7 +45,7 @@ public class Property {
@ColumnInfo(name = "belongs_agency_id", index = true)
public int belongsToAgencyId;
public Property(String description, String address, long longitude, long latitude, int belongsToAgencyId)
public Property(String description, String address, double longitude, double latitude, int belongsToAgencyId)
{
propertyId = 0;
this.description = description;