त्रुटि इंगित करती है कि private Lawyer lawyer
एक संग्रह होना चाहिए क्योंकि यह एक @OneToMany
है रिश्ता। Country
में वर्ग, अंतिम संबंध होना चाहिए
@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.