deploy « Update « JPA Q&A

1. Persistence deployment issue

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

<persistence version="2.0" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
  <persistence-unit name="Demo-PU" transaction-type="RESOURCE_LOCAL">

2. JPA with new persistence units created after deployment

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 ...