NullPointerException when retrieving data for entity with InheritanceType.SINGLE_TABLE on Neo4j

Description

A native query in Neo4jRemote returns the discrimnator type value as a Long instead of an Integer.
Because of this the equality doesn't work and the OgmLoader cannot find the sub class corresponding to the discriminator value.
This causes a NullPointerException.

Environment

Hibernate OGM 4.5.1, Wildfly 14.0.1, Zulu 8, Windows 10, Neo4j 3.5.1

Status

Assignee

Davide D'Alto

Reporter

Mlondolozi Shandu

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Major
Configure