开发者

Liquibase beginner: making a ManyToMany association bidirectional

开发者 https://www.devze.com 2023-02-08 03:03 出处:网络
I am using Hibernate w开发者_运维问答ith JPA annotations. I have a one-directional many-to-many association that I intend to make bi-directional.

I am using Hibernate w开发者_运维问答ith JPA annotations. I have a one-directional many-to-many association that I intend to make bi-directional.

The database already contains some data. I'm thinking of using Liquibase to do the tables' update. Can someone give me some insight as to the type of changelog I have to write?


Converting unidirectional many-to-many relationship to bidirectional doesn't require any database schema changes. You only need to change your classes and their mapping.

0

精彩评论

暂无评论...
验证码 换一张
取 消