Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-31-2021 03:56 AM
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?
08-04-2021 02:29 AM
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.
All the sessions of the conference are now available online