We're updating the issue view to help you get more done. 

Remote Neo4j - NPE during transaction commit when dealing with inverse relations

Description

BoltNeo4jDialect runs into NPE in getAssociation() (line 409) during a commit of a transaction after persisting of an object graph with bidirectional and polymorphic associations.

Corresponding test case can be found in https://github.com/dadrus/jpa-unit/blob/13-neo4j-support/integration-test/base/src/main/java/eu/drus/jpa/unit/test/AbstractCleanupTest.java (test1(), line 37). It can be started using https://github.com/dadrus/jpa-unit/blob/13-neo4j-support/integration-test/jpa-neo4j-hibernate-ogm-test/src/test/java/eu/drus/jpa/unit/test/CleanupTest.java (@Ignore on a class level needs to be removed). Prerequisite to run the test is a running Neo4j instance (see https://github.com/dadrus/jpa-unit/blob/13-neo4j-support/integration-test/jpa-neo4j-hibernate-ogm-test/src/test/resources/META-INF/persistence.xml for further settings).

Is the given object graph not supported by design or did I run indeed into a bug?

Environment

None

Status

Assignee

Davide D'Alto

Reporter

Dimitrij Drus

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.1.0.Final

Priority

Major