stripes entity manager with properties map

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

stripes entity manager with properties map

Hi guys.

Firstofall I'd like to say hi cause im new here. Recently I started to work in a new company and also in new framework which is stripe. What I'd like to ask you about is how to create parametrized entitymanager. I mean in current code it is done like :


this snipett of code is derived from my web.xml. This invokes init method in Stripersist class as I understand now. The method is searching for persistence.xml on my classpath and creates entitymanager. But what i need is to override the properties contained in persistence.xml.
Do you have any idea how to do this ? Because theres no possibility to invoke Persistence.createEntityManager(String persistenceUnitName, Map properties) from Stripersist.... I'd be very gratefull for your answer.

Best regards

Slashdot TV.  
Video for Nerds.  Stuff that matters.
Stripes-users mailing list
[hidden email]