-
Feature Request
-
Resolution: Done
-
Major
-
2.0.0.Final
The scaffolding generates this kind of code in terms of persistence context (e.g. below is for JSF) :
@PersistenceContext(type = PersistenceContextType.EXTENDED)
Because it doesn't have any unitName it takes the default one, if there is only one persistence unit. It would be better to explicitelly add the unitName so the code still deploys if there are several persistence unit. As per FORGE-1513, the persistence unit name is the project name with -persistence-unit :
@PersistenceContext(unitName = "myproject-persistence-unit", type = PersistenceContextType.EXTENDED)
- relates to
-
FORGE-1513 persistence-unit name should not be "forge-default" but projectNamePU
- Closed