spring data neo4j 4 を使用しています。オブジェクトを正常に保存しました。しかし、neo4j からオブジェクトを取得すると、次の例外が発生します。
コード:
@DateLong
private Date earliest;
@DateLong
private Date latest;
例外:
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at org.neo4j.ogm.typeconversion.DateLongConverter.toEntityAttribute(DateLongConverter.java:22) ~[neo4j-ogm-1.1.2.jar:na]
at org.neo4j.ogm.entityaccess.FieldWriter.write(FieldWriter.java:64) ~[neo4j-ogm-1.1.2.jar:na]
at org.neo4j.ogm.mapper.GraphEntityMapper.writeProperty(GraphEntityMapper.java:164) ~[neo4j-ogm-1.1.2.jar:na]
at org.neo4j.ogm.mapper.GraphEntityMapper.setProperties(GraphEntityMapper.java:129) ~[neo4j-ogm-1.1.2.jar:na]
at org.neo4j.ogm.mapper.GraphEntityMapper.mapNodes(GraphEntityMapper.java:110) ~[neo4j-ogm-1.1.2.jar:na]
at 4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:94) ~[neo4j-ogm-1.1.2.jar:na]