ManyToOne relation with composite key
问题 I have legacy database which entities were mapped using composite key. I converted the tables into entities with Eclipse JPA Tools but the received entities are not working. During Tomcat startup I receive the exception: referencedColumnNames(PETROL_STATION_ID, PROVIDER_ID) of xxx.FuelCardEntity.petrolStationInfo referencing xxx.PetrolStationInfoEntity not mapped to a single property Composite key class: @Embeddable public class PetrolStationInfoEntityPK implements Serializable { private