Migrate @JoinTable to @CollectionTable for element collections

Proprietary

Replaces @JoinTable with @CollectionTable when used alongside @CollectionOfElements or @ElementCollection. @CollectionTable is the JPA 2.0 standard for defining the table that stores element collections. When inverseJoinColumns is present, its column name is preserved as a @Column annotation.

io.moderne.hibernate.update40.MigrateJoinTableToCollectionTable
mod run . --recipe=io.moderne.hibernate.update40.MigrateJoinTableToCollectionTable

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.