I have the followed trouble.
There is an entity Distributor who is connected with the ManyToMany relationship to entity town:
@Entity public class Distri
First, from the entity Town, there is incorrect relationship mapping for @Manytoone. Should be:
@Entity public class District { ..... @ManyToOne private Town town; .... }