Uploaded image for project: 'Hibernate ORM'
  1. HHH-10291

Partially generated composite attribute is not retrieved after insert

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.5
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: