[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-329?page=co...
]
Max Rydahl Andersen commented on EJB-329:
-----------------------------------------
being able to print out which of possible many available persistence units on the
classpath that is relevant for the current entitymanager.
This is primarily to debug what the autodiscovery actually discovered and if you are
running multiple entitymanagers logs are not enough if I can't link a specific
instance to which of the many autodiscovered and/or manually/explicit configured
EntityManagers i'm currently holding on to.
Get persistence unit name from EntityManager and
EntityManagerFactory
---------------------------------------------------------------------
Key: EJB-329
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-329
Project: Hibernate Entity Manager
Issue Type: New Feature
Components: EntityManager
Reporter: Emmanuel Bernard
Assignee: Max Rydahl Andersen
Priority: Minor
Max asked for PU name retrieval in EM and EMF. To inject them in PersistenceException and
logs, is problematic since not all Hibernate exceptions/logs are catched and rethrown by
EM and EMF so it would not be complete.
Providing programmatic access to the PU name is doable but for what use case?
(once answered / commented, assign back to me)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira