Multiple mapping One to many in Jpa
问题 If I've, in a single entity A, multiple relations (many to one) towards an entity B (annotated with one to many)? Do I've to put an annotation for each occurrence of A in B? Example: Entity A: @Entity @Table(name = "patient") @TableGenerator(name = "tab_gen_pa", initialValue = 30000, allocationSize = 1) public class Patient implements Serializable, Comparable<Patient> { @ManyToOne @Column(name = "birth_region") private Region birthRegion; @ManyToOne @Column(name = "birth_province", length = 2