JPA: Assert parent entity only updates child entity with shared primary key

前端 未结 0 392
孤街浪徒
孤街浪徒 2021-01-01 08:25

I have a Parent who owns a single Child and shares its Primary Key with it:

@Entity()
@Table(name = "Parent")
class Parent {

    @Id
    @Generated         


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