How to create a composite primary key between a foriegn key and and a column in JPA without using an Embedded key?

前端 未结 0 481
孤独总比滥情好
孤独总比滥情好 2021-01-17 03:14

I have 3 classes, Shown Here:

public class Room implements Serializable {
    @Id
    private String ID;//pk
    @OneToMany
    private List  listOfC         


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