cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Spring boot 2.4 Null cannot be mapped to boolean value

HI,
i changed to the new SDN6. In the previous versions when i had a boolean property, and it had no value saved in the db, it was automatically set as false at mapping and caused no problem.

In this however it throws an exception that null cannot be mapped to boolean value.

Should i now set up some Null to boolean conversion or what should i do?
I have tried with the @ConvertWith but no luck so far, can this be implemented with that?

1 REPLY 1

The boolean entry of Spring Data Neo4j is a bit ambiguous.
In the meantime, going with a custom implementation of Neo4jPersistentPropertyConverter and passing that implementation class name as the value of @ConvertWith should work.