Annotations are ignored during enhancement if they are on the getter instead of the field

Description

Let's consider this use case:

When we enable the inline dirty checking enhancement and create the entity, the dynamic field $$_hibernate_compositeOwners is null. If we put the embedded annoation on the field, it is initialized with the value "firstPlayerToken".

Also, changing the value of the embedded field does not affect the $$_hibernate_compositeOwners.

I don't think the behaviour should be different in these cases but I might be wrong.

Environment

None

Activity

Show:
Davide D'Alto
December 3, 2019, 11:54 AM

Not sure why, but I’ve uploaded the same file twice and now I cannot delete it. Sorry

Davide D'Alto
December 3, 2019, 5:58 PM

I think I’ve figured out the problem here. I’m going to fix it

Sanne Grinovero
December 4, 2019, 3:06 PM

Removed the additional copy of the attachment.

Assignee

Davide D'Alto

Reporter

Davide D'Alto

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure