Setting JPA persistence properties dynamically
问题 Let's say I have the following persistence.xml with the connection url, user & password all hard-coded. The following is for Hibernate 3.2. For Hibernate 3.5 ++, we have to change "hibernate.connection" to "javax.persistence". But let me ask this question regardless of the literals "hibernate.connection" or "javax.persistence". <persistence-unit name="obamacare" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <exclude-unlisted-classes>false<