openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Nowosatka (Updated) (JIRA)" <>
Subject [jira] [Updated] (OPENJPA-2083) Unmapped fields silently treated as transient
Date Fri, 30 Dec 2011 19:54:30 GMT


Jacob Nowosatka updated OPENJPA-2083:

    Attachment: OPENJPA-2083.patch

Patch adds a warning message when dealing with unmapped non-primitive fields stating that
"the fields are not default persistent and do not have any annotations. and will be treated
as non-persistent. If they fields should be persistent, annotate them with the appropriately.
Otherwise, mark them as transient."
> Unmapped fields silently treated as transient
> ---------------------------------------------
>                 Key: OPENJPA-2083
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.1.1
>            Reporter: Harald Wellmann
>            Priority: Minor
>         Attachments: OPENJPA-2083.patch
> The JPA 2.0 spec requires any non-static non-transient entity field to be persistent
unless explicitly mapped as transient by a @Transient annotation or the equivalent XML.
> OpenJPA 2.1.1 silently treats some unmapped non-primitive fields as transient instead
of throwing an exception or at least logging a warning.
> Example:
> @Entity
> public class City {
>     @Id
>     private String name;
>     private Integer population;
>     private java.util.concurrent.Executor executor;
>     // getters and setters
> }

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message