Attributes on Many-to-Many relationships (Hibernate)

前端 未结 2 1836
失恋的感觉
失恋的感觉 2021-01-02 13:06

I have entity classes A and C. They are mapping the tables tblA and tblC and have a many-to-many relationship between them, with tblB to map between them. tblB contains A_ID

2条回答
  •  生来不讨喜
    2021-01-02 13:50

    See

    @ManyToMany Hibernate Question (can add extra field?)

    And

    how to make a composite primary key (java persistence annotation)

    regards,

提交回复
热议问题