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 7FD2F10C4F for ; Tue, 18 Jun 2013 08:36:31 +0000 (UTC) Received: (qmail 9294 invoked by uid 500); 18 Jun 2013 08:36:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 9111 invoked by uid 500); 18 Jun 2013 08:36:24 -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 9046 invoked by uid 99); 18 Jun 2013 08:36:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 08:36:20 +0000 Date: Tue, 18 Jun 2013 08:36:19 +0000 (UTC) From: "Glen Mazza (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OPENJPA-2401) "Fields 'xxx' are not a default persistent type" warning message ignoring XML configuration. 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-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13686500#comment-13686500 ] Glen Mazza commented on OPENJPA-2401: ------------------------------------- I'm surprised you knocked this item down to "trivial", like it's a misspelling or something. I wasted a lot of time on the misinformation provided by the logger. > "Fields 'xxx' are not a default persistent type" warning message ignoring XML configuration. > -------------------------------------------------------------------------------------------- > > Key: OPENJPA-2401 > URL: https://issues.apache.org/jira/browse/OPENJPA-2401 > Project: OpenJPA > Issue Type: Bug > Components: logging > Affects Versions: 2.2.2 > Reporter: Glen Mazza > Priority: Trivial > > Hi, unless I set "@OneToMany" as shown here: > https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/java/entities/Department.java#L47 > I'll get this warning message: > 678 CompanyPU WARN [main] openjpa.Runtime - Fields "employees" are not a default persistent type, and do not have any annotations indicating their persistence strategy. They will be treated as non-persistent. If you intended for these fields to be persistent, be sure to annotate them appropriately. Otherwise annotate them with @Transient. > However, I shouldn't have to set that annotation because I've already declared one-to-many via XML configuration: > https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/resources/entities/department.orm.xml#L29 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira