Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Can't select double variable in Model #42

Description

@val66

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions