Migrate Hibernate CascadeType constants

Proprietary

Moving away from deprecated Hibernate CascadeType constants. CascadeType.SAVE_UPDATE -> CascadeType.PERSIST and/or CascadeType.MERGE, CascadeType.DELETE -> CascadeType.REMOVE.

io.moderne.hibernate.update66.MigrateCascadeTypes
mod run . --recipe=io.moderne.hibernate.update66.MigrateCascadeTypes

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

Recipe list

It runs these recipes, in this order.

  1. Add or update annotation attribute org.hibernate.annotations.Cascade
  2. Replace constant with another constant
  3. Replace constant with another constant