tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rde8026 <>
Subject EntityManager not picking up Map properties
Date Fri, 19 Sep 2008 03:28:24 GMT

I'm using Hibernate as my JPA provider in a Stateless EJB.  I need to add the
hibernate.default_catalog property to the EntityManager based on the dialect
being used (i.e. SQL Server = dbo).  I'm injecting the EntityManagerFactory
and trying to construct an EntityManager based off that but passing a
HashMap to it with that single property...and its not pre-pending the sql
statements correctly.  If I do it via the persistence.xml file it
works....any thoughts?

Here is a code snippet..

Map<String, String> props = new HashMap<String, String>();
props.put("hibernate.default_catalog", "dbo");         	
em = emf.createEntityManager(props);

Thanks for any advice!
View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message