The problem is that EntityBasedCompositionAttribute#getValueGenerationStrategy#valueGenerationStrategy returns null (even though sub-attribute is generated). As a result, the generated value is not read by {[AbstractEntityPersister#processGeneratedProperties}} after insert.
org.hibernate.test.generated.PartiallyGeneratedComponentTest reproduces this.
|