I try to evaluated if i can use java ogm library neo4j with AWS Neptune but it fails with following error when saving
2024-06-28 10:20:18,900 DEBUG [org.neo.ogm.dri.bol.req.BoltRequest] (executor-thread-1) Request: UNWIND $rows as row MERGE (n:`Dummy`{id: row.props.id}) SET n=row.props RETURN row.nodeRef as ref, ID(n) as id, $type as type with params {type=node, rows=[{nodeRef=-1, props={businessId=toto1, name=toto}}]}
2024-06-28 10:20:18,900 DEBUG [org.neo.ogm.dri.bol.req.BoltRequest] (executor-thread-1) Request: UNWIND $rows as row MERGE (n:`Dummy`{id: row.props.id}) SET n=row.props RETURN row.nodeRef as ref, ID(n) as id, $type as type with params {type=node, rows=[{nodeRef=-1, props={businessId=toto1, name=toto}}]}
2024-06-28T10:20:18.974+02:00
2024-06-28 10:20:18,973 WARN [org.neo.ogm.ses.Neo4jSession] (executor-thread-1) Error executing query : "BoltProtocol.unexpectedException" - "Unexpected server exception 'Property access over ambiguous type is not supported in this release.'". Rolling back transaction.
Code to save is done with :
Session session = sessionFactory.openSession();
session.save(dummy);
With Dummy class :
@NodeEntity
@ToString
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Dummy {
@Getter
@Setter
@NotNull
@Id
String businessId;
@Getter
@Setter
String name;
}
I try to look in source code where ‘Property access over ambiguous type is not supported in this release’ should be raised but can find it