We're updating the issue view to help you get more done. 

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

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

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

Environment

None

Status

Assignee

Luis Barreiro

Reporter

LAdO

Components

Affects versions

5.0.2

Priority

Major