Re: [hibernate-dev] HHH-9440 - full instantiation of composites

2017-12-19 Thread Steve Ebersole
My concern with entities is not so much the full instantiation case... its where I know this goes next - namely requests to allow a mix where some attributes are ctor-injected while others are injected normally. Allowing ctor injection of any persistent state is going to open that window. Also, g

Re: [hibernate-dev] HHH-9440 - full instantiation of composites

2017-12-19 Thread Sanne Grinovero
Haven't thought it through and I'm possibly not aware of all consequences but I'd be curious to hear more about why you'd be completely in disagreement with having such a feture for any model, inlcuding entities. We have since recently "refential caching" which requires entities to be fully immuta

Re: [hibernate-dev] HHH-9440 - full instantiation of composites

2017-12-18 Thread Steve Ebersole
OK then... HHH-9440 is requesting to allow full instantiation of a composite (i.e. treat its state as final). E.g.: @Embeddable class Name { private final String first; private final String last; public Name(String first, String last) { ... } } I wanted to see what ever

[hibernate-dev] HHH-9440 - full instantiation of composites

2017-12-18 Thread Steve Ebersole
HHH-9440 is re ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev