Andreas Joseph Krogh commented on an issue
Hibernate ORM / Bug HHH-7814
Mapping collection of entities of the same type in 2 different entities with same property-name and notnull constraints from results in duplicate property mapping of Backref
There are two issues:

Issue 1; The field-mapping has the same name:
{code}


public class OneToManyHHH5836Test extends BaseCoreFunctionalTestCase {

@Test
public void testMappingWithSameNameFails() {
}

@Override
protected Class[] getAnnotatedClasses() {
return new Class[] {Company.class, Person.class, EmailAddress.class};
}

@Entity
@Table...