[
https://issues.apache.org/jira/browse/OPENJPA-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16740515#comment-16740515
]
Matt Pavlovich edited comment on OPENJPA-2331 at 1/11/19 3:59 PM:
------------------------------------------------------------------
Also see this error when enhancing a sub-class where the parent contains a
field to be mapped by the sub-class entity (specifically, a sub-class mapping
the parent entity's id as a fk field)
was (Author: mattrpav):
Also see this error when enhancing a sub-class where the parent contains a
field to be mapped by the sub-class entity
> NPE during enhancement processing
> ---------------------------------
>
> Key: OPENJPA-2331
> URL: https://issues.apache.org/jira/browse/OPENJPA-2331
> Project: OpenJPA
> Issue Type: Bug
> Components: Enhance
> Affects Versions: 2.0.1, 2.0.2
> Reporter: Kevin Sutter
> Priority: Major
>
> Based on a discussion in the Users mailing list:
> http://openjpa.208410.n2.nabble.com/Request-for-help-in-fixing-an-issue-in-build-time-enhancement-td7582737.html
> The user was migrating an application from Hibernate to OpenJPA. The
> application used inheritance. The Hibernate mapping file did not have
> separate entity mappings for one of the parent entity classes. The tooling
> [1] generated an orm.xml file with attributes of the parent entity class
> mixed in with the child class. These errant attributes caused the issues
> with the enhancement processing.
> So, a combination of the migration tools along with the mixed up orm xml
> files led to these errors. But, still an NPE is not good and we should
> handle these conditions better. Thus, this JIRA...
> [1] http://openjpa.apache.org/migration-tool.html
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)