You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2011/01/18 15:48:43 UTC
[jira] Closed: (OPENJPA-1926) ClassCastException -
org.apache.openjpa.util.Id cannot be cast to
org.apache.openjpa.util.StringId
[ https://issues.apache.org/jira/browse/OPENJPA-1926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick Curtis closed OPENJPA-1926.
--------------------------------
Resolution: Not A Problem
Assignee: Rick Curtis
** See persistence.xml schema definition for the <class> element (pg 323 of 2.0 Final Release)
<xsd:element name="class" type="xsd:string"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Managed class to be included in the persistence unit and
to scan for annotations. It should be annotated
with either @Entity, @Embeddable or @MappedSuperclass.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
Per the spec, OpenJPA is working properly. Please reopen if you disagree with my assessment.
> ClassCastException - org.apache.openjpa.util.Id cannot be cast to org.apache.openjpa.util.StringId
> --------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-1926
> URL: https://issues.apache.org/jira/browse/OPENJPA-1926
> Project: OpenJPA
> Issue Type: Bug
> Reporter: Matthias Weßendorf
> Assignee: Rick Curtis
> Fix For: 2.0.1
>
> Attachments: EclipseLinkCfg.zig, OPENJPA-1926.zip
>
>
> I am getting an ClassCastException (org.apache.openjpa.util.Id cannot be cast to org.apache.openjpa.util.StringId)
> when using @Id (and @GeneratedValue) in an (abstract) @MappedSuperclass, that is extended by an abstract @Entity bean.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.