Quantcast
Channel: Spring Community Forums - NoSQL
Viewing all articles
Browse latest Browse all 128

How can I correctly map my float fields in Spring Data Neo4j

$
0
0
I've got this entity class:

Code:

@NodeEntity
public class Location {
    @GraphId
    private long id;
    private float latitude;
    private float longitude;
}

When I try to load an entity from the database, both the longitude and latitude values are 0.0. Is there something else I need to do in order for these properties to be mapped correctly?

Viewing all articles
Browse latest Browse all 128

Trending Articles