aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Cartapanis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1517) Inject properties to persistence.xml
Date Mon, 04 Apr 2016 16:19:25 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224426#comment-15224426
] 

Alexandre Cartapanis commented on ARIES-1517:
---------------------------------------------

I think the simplest solution is to inject the properties of the persistence bundle to the
EntityManagerFactory.

> Inject properties to persistence.xml
> ------------------------------------
>
>                 Key: ARIES-1517
>                 URL: https://issues.apache.org/jira/browse/ARIES-1517
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>    Affects Versions: jpa-2.3.0
>            Reporter: Alexandre Cartapanis
>
> It would be great to being able to modify the persistence.xml's properties at startup
(or even at runtime).
> For now, you can inject a datasource at runtime, but the persistence.xml's properties
like "hibernate.dialect" or "openjpa.jdbc.DBDictionary" cannot be changed, making the changes
of datasource useless.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message