Problems with Bidirectional association management bytecode enhancements

Description

The example in the documentation doens't seem to work.

Here a list of the use cases I tested:

  1. Add element only to the many-to-one side: works as expected

  2. Add element only to the one-to-many side: doesn't work

  3. Set the element to null on the many-to-one side: it won't remove the element from the collection

  4. Add element to both side (normal behaviour without enhancements); It will add the element twice to the collection. I don't think this is necessarly a problem but we should be clearer in the documentation.

Here the list of uses cases in form of tests:

Environment

None

Assignee

Unassigned

Reporter

Davide D'Alto

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure