[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-329) Get persistence unit name from EntityManager and EntityManagerFactory
Sanne Grinovero (JIRA)
noreply at atlassian.com
Mon Apr 28 07:16:33 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30086 ]
Sanne Grinovero commented on EJB-329:
-------------------------------------
I agree with Max, this looks like very useful for debugging.
I think the code is trivial, I could provide a patch if you tell me on which interface / implementation it should be exported..
I suppose we can't just add something to java.persistence.EntityManager right?
> 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: Emmanuel Bernard
> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list