Alternative workaround using {{@AttributeOverrides}} :
{code} /** * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> * User assignments (place managers, staffs, etc.). <!-- end-model-doc --> * */ @ElementCollection() // Workaround for https://hibernate.atlassian.net/browse/HHH-6005 @AttributeOverrides({ @AttributeOverride(name="personId", column=@Column(name="personId")), @AttributeOverride(name="placeRoleId", column=@Column(name="placeRoleId")) }) private Set<PlaceMember> members = new HashSet<PlaceMember>(); {code}
|