Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0-alpha, 1.0
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
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>
Activity
Mark Struberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Mark Struberg [ struberg ] |
Mark Struberg
made changes -
| Affects Version/s | 1.0-alpha [ 15973 ] | |
| Fix Version/s | 1.1 [ 15975 ] | |
| Affects Version/s | 1.0 [ 15974 ] |
Mark Struberg
made changes -
| Fix Version/s | 1.1 [ 15975 ] | |
| Fix Version/s | 1.2 [ 15976 ] |
Mark Struberg
made changes -
| Fix Version/s | 1.3 [ 16967 ] | |
| Fix Version/s | 1.2 [ 15976 ] |
Mark Struberg
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
Dennis Lundberg
made changes -
| Fix Version/s | 1.3 [ 16967 ] |
Dennis Lundberg
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
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>
{build.outputDirectory}/org/permacode/patternrepo/domain/entity<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>
$
</classes>
<outputDirectory>${build.outputDirectory}
</outputDirectory>
{build.outputDirectory}<toolProperties>
<property>
<name>properties</name>
<value>
$
/META-INF/persistence.xml#OpenJpaJdbc
</value>
</property>
</toolProperties>
</configuration>
</execution>
</executions>
</plugin>