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

2017-08-25 Thread Gail Badner
After thinking about this more, I realize there are some very serious issues if Hibernate: * allows composites with primitive or initialized (non-null) attributes to be instantiated when hibernate.create_empty_composites.enabled=true * assumes that an empty composite with primitive values or initi

[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