JPA. JoinTable and two JoinColumns
问题 I need to create table PORTATION_MODEL_SET. And I need to create two keys from table portation and one key from table phone_model I have code: @Entity @Table(name="PORTATION") @SecondaryTable(name="PORTATION") @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public class JDBCPortation implements Portation { @Id @GeneratedValue(strategy=GenerationType.AUTO) private Integer id; @ManyToOne(targetEntity=JDBCContentMetaData.class, fetch=FetchType.LAZY) @JoinColumn(name="fk_content_id"