[ 
http://jira.codehaus.org/browse/MOPENJPA-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200428#action_200428
 ] 

Adam Hardy commented on MOPENJPA-3:
-----------------------------------

Obviously it would be nice to have a standard property to specify the 
persistence unit, and the persistence.xml file too I guess, but this config 
works fine for me with the current snapshot:

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>openjpa-maven-plugin</artifactId>
        <version>1.1-SNAPSHOT</version>
        <executions>
          <execution>
            <phase>process-classes</phase>
            <id>enhanceEntities</id>
            <goals>
              <goal>enhance</goal>
            </goals>
            <configuration>
              <classes>
                ${build.outputDirectory}/org/permacode/patternrepo/domain/entity
              </classes>
              <outputDirectory>${build.outputDirectory}</outputDirectory>
              <toolProperties>
                <property>
                  <name>properties</name>
                  <value>
                    
${build.outputDirectory}/META-INF/persistence.xml#OpenJpaJdbc
                  </value>
                </property>
              </toolProperties>
            </configuration>
          </execution>
        </executions>
      </plugin>


> add a config property to specify a specific PersistenceUnit name
> ----------------------------------------------------------------
>
>                 Key: MOPENJPA-3
>                 URL: http://jira.codehaus.org/browse/MOPENJPA-3
>             Project: Maven 2.x OpenJPA Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.0-alpha, 1.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1
>
>
> Currently, it is not possible to explicitely define one PersistenceUnit which 
> should be used for the maven mojos.
> in the ant based tasks this is done via:
>       <value>META-INF/persistence.xml#OpenJpaTestPersistenceUnit</value>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to