Skip to content

Conversation

@michael-simons
Copy link
Collaborator

This change applies custom converters to collections if they indicate via their type parameter if they want to work on a whole collection or on single elements.

To make this work, a somewhat breaking change is required: The Neo4jPersistentProperty cannot return Function<?, ?> for their optional reading and writing converters anymore, as we loose the converter information at that place.

The chances that someone extends that interface are minimal and can hopefully be mitigated in case anyone does so. The urgency of that feature justifies the change.

In addition, the null safe writing and reading must be replaced with a delegating mechanism. This has the advantage that we have simpler stacks, as we don't pass lambdas around anymore.

This fixes #2408.

…e collections if necessary. This change applies custom converters to collections if they indicate via their type parameter if they want to work on a whole collection or on single elements. To make this work, a somewhat breaking change is required: The `Neo4jPersistentProperty` cannot return `Function<?, ?>` for their optional reading and writing converters anymore, as we loose the converter information at that place. The chances that someone extends that interface are minimal and can hopefully be mitigated in case anyone does so. The urgency of that feature justifies the change. In addition, the null safe writing and reading must be replaced with a delegating mechanism. This has the advantage that we have simpler stacks, as we don't pass lambdas around anymore. This fixes #2408.
@michael-simons michael-simons merged commit e599f93 into main Oct 20, 2021
@michael-simons michael-simons deleted the issue/2408 branch October 20, 2021 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants