deploy « Update « JPA Q&A





1. Persistence deployment issue    stackoverflow.com

I have a hibernate project, which uses JPA. my persistence.xml contents is as follows:

<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  <persistence-unit name="Demo-PU" transaction-type="RESOURCE_LOCAL">
  <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <non-jta-data-source>java:/DemoDS</non-jta-data-source> 
   ...

2. JPA with new persistence units created after deployment    forum.hibernate.org

I am using JPA with Hibernate to create a Java SE desktop application. We have historically used an eight character identifier to uniquely identify a database area. Users can create new database areas which is assigned an identifier. I need to have a persistence unit created using this identifier. I don't know how to create a new persistence unit using this ...