Freezer
Freezer copied to clipboard
Can't select double variable in Model
Hi !
As the title of the issue say, i created a Model :
@Model
public class FavoriteSpot {
String name;
double latitude;
double longitude;
long timestamp;
int used;
public FavoriteSpot(){
}
public FavoriteSpot(String name, LatLng latLng, long timestamp){
this.name = name;
latitude = latLng.latitude;
longitude = latLng.longitude;
this.timestamp = timestamp;
used = 0;
}
@Override
public String toString() {
return "FavoriteSpot{" +
"name='" + name + '\'' +
", latitude=" + latitude +
", longitude=" + longitude +
", timestamp=" + timestamp +
", used=" + used +
'}';
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getLatitude() {
return latitude;
}
public double getLongitude() {
return longitude;
}
public long getTimestamp() {
return timestamp;
}
public int getUsed() {
return used;
}
}
When i tried to get my Model through it's entity manager, i can not access to it's double variables (latitude and longitude), for example :
favoriteSpotEntityManager.select().latitude()
-> Did not work 👎
but :
favoriteSpotEntityManager.select().name()
-> Is working fine 👍
It's probably me who didn't use correctly the library, because your change log explicitly say that you handle double value. So if you can point my error i would be glad.