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 2009/10/06 16:53:31 UTC
[jira] Updated: (OPENJPA-859) OpenJPA requires all persistent
fields to be specified on an XML defined entity
[ https://issues.apache.org/jira/browse/OPENJPA-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick Curtis updated OPENJPA-859:
--------------------------------
Fix Version/s: (was: 2.0.0-M3)
2.0.0-M4
> OpenJPA requires all persistent fields to be specified on an XML defined entity
> -------------------------------------------------------------------------------
>
> Key: OPENJPA-859
> URL: https://issues.apache.org/jira/browse/OPENJPA-859
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 2.0.0-M2
> Reporter: Jeremy Bauer
> Assignee: Rick Curtis
> Fix For: 1.3.0, 2.0.0-M4
>
>
> This problem was reported by Frank Schwarz on the user forum[1]. It appeared to be related to the use of the new element-collection element in XML, but is actually are result of not having all persistent fields defined in XML. If all fields are defined - or the entity is simply annotated with @Entity no exception is thrown.
> Based on the JPA spec:
> 2.1.1 - If the entity has field-based access, the persistence provider runtime accesses instance variables
> directly. All non-transient instance variables that are not annotated with the Transient
> annotation are persistent. When field-based access is used, the object/relational mapping annotations
> for the entity class annotate the instance variables.
> In addition, the <entity> xsd documentation states: [entity] Defines the settings and mappings for an entity. Is allowed to be
> sparsely populated and used in conjunction with the annotations.
> [1] http://n2.nabble.com/orm.xml---element-collection---trunk-tp2142331p2142331.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.