[JPA_SPEC-12] Addition of preCreate/postCreate callbacks for EntityManagerFactory Created: 05/Dec/11  Updated: 15/Apr/14

Status: Open
Project: jpa-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: ldemichiel Assignee: ldemichiel
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: RFE


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.

Generated at Sun Mar 26 21:49:38 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.