Hibernate/JPA mapping for composite foreign key and primary key

前端 未结 0 613
离开以前
离开以前 2021-01-20 12:20

I have 3 entities House, Member, Pet. Mapping classes are:

public class House {
    @EmbeddedId
    private HouseId houseId;
    // other fields
}

@Embeddabl         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题