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.
精彩评论