Hi, I have two simple entities with ManyToMany relation between them, and each of them contains a owning property with related entities of the other.
Example:
on entity Teacher
@JoinTable(name = "WEBSCHOOL_TEACHER_APPOINTMENT_TYPE_LINK",
joinColumns = @JoinColumn(name = "TEACHER_ID"),
inverseJoinColumns = @JoinColumn(name = "APPOINTMENT_TYPE_ID"))
@ManyToMany
protected Set<AppointmentType> enabledAppointmentTypes;
on entity AppointmentType
@JoinTable(name = "WEBSCHOOL_TEACHER_APPOINTMENT_TYPE_LINK",
joinColumns = @JoinColumn(name = "APPOINTMENT_TYPE_ID"),
inverseJoinColumns = @JoinColumn(name = "TEACHER_ID"))
@ManyToMany
protected Set<Teacher> teachers;
In this situation, if I have a browse screen for, say, the AppointmentType entity everything works fine.
But, if I swap the Set with a LinkedHashSet for both entities, a IllegalStateException: entity XXX is a ChangeTracker but has no PropertyChangeListener shows up as soon as I open that screen.
Paolo
EDIT: tested on CUBA ver 6.6.4