[JPA_SPEC-12] Addition of preCreate/postCreate callbacks for EntityManagerFactory Created: 05/Dec/11 Updated: 15/Apr/14
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
This would be useful hook for creation and/or modification of named queries.
|Comment by ldemichiel [ 05/Dec/11 ]|
We don't currently have a well-defined initialization sequence, and the EMF may be created by the container before application code gets to execute. However, a startup singleton EJB's postConstruct could be used for adding named queries, or a servlet init method.
|Comment by c.beikov [ 15/Apr/14 ]|
I have the feeling that JPA_SPEC-23 is also kind of related to this issue if a preCreate callback allowed for mutation of the meta- and physical model.