[hibernate-dev] HHH-11898: more "empty" composite issues

2017-08-10 Thread Gail Badner
I realized that ComponentType#isEqual as well as #isSame, #compare, #isDirty, and #isModified do not treat empty composites as equivalent to null in the following cases: 1) the composite has a primitive attribute; 2) the composite has a singular attribute that gets initialized to a non-null (or no

[hibernate-dev] Empty composites and embeddable containing an embeddable

2017-08-10 Thread Gail Badner
If an embeddable contains an embeddable, and the outer embeddable is instantiated due to hibernate.create_empty_composites.enabled=true, should the inner embeddable be instantiated as well? Currently, the inner embeddable is not instantiated. I am guessing that it should be. I just wanted to make