[
https://issues.apache.org/jira/browse/OPENJPA-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Baumgartner updated OPENJPA-2273:
----------------------------------------
Description:
Using an entity-field with a custom @Strategy(*ValueHander) fails with
maven-plugin openjpa:sql.
[INFO] Trace
<openjpa-2.2.0-r422266:1244990 fatal user error>
org.apache.openjpa.util.MetaDataException: Field
"at.badgateway.jpa.model.Chair.type" declared custom mapping strategy
"at.badgateway.jpa.vh.ExampleValueHandler", but this strategy cannot be
instantiated.
at
org.apache.openjpa.jdbc.meta.MappingRepository.namedStrategy(MappingRepository.java:604)
was:
Using an entity-field with a custom @Strategy(*ValueHander) fails with
maven-plugin openjpa:sql.
> openjpa-maven-plugin fails with custom strategy
> -----------------------------------------------
>
> Key: OPENJPA-2273
> URL: https://issues.apache.org/jira/browse/OPENJPA-2273
> Project: OpenJPA
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.2.0
> Reporter: Martin Baumgartner
> Attachments: strategytest.jar
>
>
> Using an entity-field with a custom @Strategy(*ValueHander) fails with
> maven-plugin openjpa:sql.
> [INFO] Trace
> <openjpa-2.2.0-r422266:1244990 fatal user error>
> org.apache.openjpa.util.MetaDataException: Field
> "at.badgateway.jpa.model.Chair.type" declared custom mapping strategy
> "at.badgateway.jpa.vh.ExampleValueHandler", but this strategy cannot be
> instantiated.
> at
> org.apache.openjpa.jdbc.meta.MappingRepository.namedStrategy(MappingRepository.java:604)
--
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