[
https://issues.apache.org/jira/browse/OPENJPA-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13784081#comment-13784081
]
Rick Curtis commented on OPENJPA-2428:
--------------------------------------
Romain -
Sorry about not following up on this sooner. AFAIK, the ONLY properties that
are relevant for enhancement are openjpa.DetachState and
openjpa.OptimizeIdCopy. Those two properties can change the bytecode that is
generated by PCEnhancer. That being said, there are probably a few other
properties that the runtime requires to be set (openjpa.jdbc.DBDictionary?) for
the enhancer to run, but it wouldn't actually use them.
So, I'd think that It is possible that the openjpa-maven-plugin could
synthesize values for the other 'required' properties because the value won't
change how the enhancer runs. Make sense?
> ability to configure properties and classes of the persistence xml in the pom
> when using openjpa-maven-plugin to enhance entities
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2428
> URL: https://issues.apache.org/jira/browse/OPENJPA-2428
> Project: OpenJPA
> Issue Type: New Feature
> Reporter: Romain Manni-Bucau
> Attachments: openjpa-ontheflypersistencexml.patch
>
>
> The idea is to allow:
> {code}
> <plugin>
> <groupId>org.apache.openjpa</groupId>
> <artifactId>openjpa-maven-plugin</artifactId>
> <version>2.3.0</version>
> <configuration>
> <persistenceXmlProperties>
>
> <openjpa.jdbc.DBDictionary>hsql</openjpa.jdbc.DBDictionary>
>
> <openjpa.ConnectionDriverName>org.hsqldb.jdbcDriver</openjpa.ConnectionDriverName>
>
> <openjpa.ConnectionURL>jdbc:hsqldb:mem:test</openjpa.ConnectionURL>
>
> <openjpa.ConnectionUserName>sa</openjpa.ConnectionUserName>
>
> <openjpa.ConnectionPassword></openjpa.ConnectionPassword> <!-- empty -->
> </persistenceXmlProperties>
> <persistenceXmlClasses>
>
> <persistenceXmlClasses>org.superbiz.MyEntity</persistenceXmlClasses>
> </persistenceXmlClasses>
> </configuration>
> </plugin>
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)