Add Action to set unitName attribute on @PersistenceContext
to 'default'
#400
Labels
type: enhancement
New feature or request
Milestone
What needs to be done
Add an
Action
tomigrate-jpa-to-spring-boot.yaml
to change explicitly setunitName
attributes inPersistenceContext
annotations (on member level) to 'default' if the value is notdefault
.Why it needs to be done
Recipe
migrate-jpa-to-spring-boot.yaml
does not touchunitName
of@PersistenceContext
but this recipe expects only onepersistence-unit
to exist with name 'default'. When a differentunitName
is set the Spring Boot application fails to start.Acceptance Criteria
Given:
Expected:
The text was updated successfully, but these errors were encountered: