Der Fehler weist darauf hin, dass private Lawyer lawyer
muss eine Sammlung sein, da es sich um @OneToMany
handelt Beziehung. Im Country
Klasse sollte die letzte Beziehung
@OneToMany(targetEntity = Lawyer.class, cascade = { CascadeType.ALL }, orphanRemoval = true)
@JoinTable(name = "lawyer_cscd", joinColumns = {
@JoinColumn(name = "country_code", referencedColumnName = "country_code") }, inverseJoinColumns = {
@JoinColumn(name = "lawyer_batch_no", referencedColumnName = "lawyer_batch_no") })
private Set<Lawyer> lawyer;
// or a Collection/List/etc.