Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7185C7F58 for ; Thu, 1 Dec 2011 20:21:01 +0000 (UTC) Received: (qmail 22864 invoked by uid 500); 1 Dec 2011 20:21:01 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 22818 invoked by uid 500); 1 Dec 2011 20:21:01 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 22669 invoked by uid 99); 1 Dec 2011 20:21:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 20:21:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 20:21:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 15E57AEB2C for ; Thu, 1 Dec 2011 20:20:40 +0000 (UTC) Date: Thu, 1 Dec 2011 20:20:40 +0000 (UTC) From: "Rick Curtis (Commented) (JIRA)" To: dev@openjpa.apache.org Message-ID: <594761318.32279.1322770840091.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <693587002.22950.1322594860425.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-2083) Unmapped fields silently treated as transient MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161109#comment-13161109 ] Rick Curtis commented on OPENJPA-2083: -------------------------------------- Kevin / Harold - Thoughts on the correct 'fix' for this issue? I'm leaning toward a warning message... Thanks, Rick > Unmapped fields silently treated as transient > --------------------------------------------- > > Key: OPENJPA-2083 > URL: https://issues.apache.org/jira/browse/OPENJPA-2083 > Project: OpenJPA > Issue Type: Bug > Components: jpa > Affects Versions: 2.1.1 > Reporter: Harald Wellmann > Priority: Minor > > 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira