openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <>
Subject [jira] Resolved: (OPENJPA-859) OpenJPA requires all persistent fields to be specified on an XML defined entity
Date Fri, 25 Sep 2009 17:56:16 GMT


Rick Curtis resolved OPENJPA-859.

    Resolution: Fixed

1.3.x -- Committed revision 818927,818932.
trunk -- Committed revision 818928.

> OpenJPA requires all persistent fields to be specified on an XML defined entity
> -------------------------------------------------------------------------------
>                 Key: OPENJPA-859
>                 URL:
>             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-M3
> 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
> 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]

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message