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

Enhance-maven-plugin failed with self referenced entity and same attribute name.

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.0.2.Final:enhance (default) on project test-enhance-maven-plugin:

      Unable to enhance class: entity.Address: Unable to enhance persistent attribute [entity.Address:address]: Could not enhance entity class [entity.Address] to add field writer method [$$_hibernate_write_address]: [source error] $$_hibernate_write_linkedCountries(entity.Address) not found in entity.Address

      Reproducer is in attachment test-enhance-maven-plugin.zip

      When I try the same mappings in EnhancerTest test task, everythink is ok.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: