[forge-issues] [JBoss JIRA] (FORGE-1513) persistence-unit name should not be "forge-default" but projectNamePU

Lincoln Baxter III (JIRA) issues at jboss.org
Tue Jan 28 16:23:28 EST 2014


     [ https://issues.jboss.org/browse/FORGE-1513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lincoln Baxter III reassigned FORGE-1513:
-----------------------------------------

    Assignee: Lincoln Baxter III

    
> persistence-unit name should not be "forge-default" but projectNamePU
> ---------------------------------------------------------------------
>
>                 Key: FORGE-1513
>                 URL: https://issues.jboss.org/browse/FORGE-1513
>             Project: Forge
>          Issue Type: Sub-task
>          Components: Scaffold
>    Affects Versions: 2.0.0.CR2
>            Reporter: Antonio Goncalves
>            Assignee: Lincoln Baxter III
>             Fix For: 2.x Future
>
>
> When executing the {{jpa-setup}} command, the resulting {{persistence.xml}} is :
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
>   <persistence-unit name="forge-default" transaction-type="JTA">
>     <description>Forge Persistence Unit</description>
>     <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
>     <exclude-unlisted-classes>false</exclude-unlisted-classes>
>     <properties>
>       <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
>       <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/>
>       <property name="javax.persistence.schema-generation.scripts.create-target" value="pluralsight-persistenceCreate.ddl"/>
>       <property name="javax.persistence.schema-generation.scripts.drop-target" value="pluralsight-persistenceDrop.ddl"/>
>     </properties>
>   </persistence-unit>
> </persistence>
> {code}
> The persistence unit {{name}} in this case should be {{pluralsight-persistencePU}} instead of {{forge-default}}. This is just the project name concat with {{PU}} (in the {{persistence.xml}} there is already the project name for the DDL files, it's just a matter of having the same semantic)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list