Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CA9B110B4 for ; Thu, 24 Apr 2014 15:25:03 +0000 (UTC) Received: (qmail 11245 invoked by uid 500); 24 Apr 2014 15:25:02 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 11204 invoked by uid 500); 24 Apr 2014 15:25:02 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 11195 invoked by uid 99); 24 Apr 2014 15:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 15:25:02 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.216.53 as permitted sender) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 15:24:58 +0000 Received: by mail-qa0-f53.google.com with SMTP id w8so2330427qac.40 for ; Thu, 24 Apr 2014 08:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=0KuY8Szetc1u57CKjGLPBdHwFt3piN+enUGSN2bBkTQ=; b=Ou2+57aIbofrzSJGY1Az05ct4rkQQnAzT/oCLLZnI6ZobU1nWoa5J2P/gkBU+3zMdo uaRQ1yPV3O8LTKaJSktPYZmg8ZHnBc2R1/YZO0m4kN8fznpM0XQpFoXMdyN4d/UhNraO uLOKrVSV1KOPJYRPPZTkdn5eOFWVqdZ4pEjDmKYQHOe1bSracHO7b9PhzTDbGgFzeTCP OYGdjECxDsRIlxFyvnZpaStIFB3S15rHelCNs18xuK/dD30gYXCv73vJgy3ik0Jje0Rn MatpuaoxQwJvdJxnnneYEArkOczlgEd81iV/PmVVqPFztrhehsspquxrdPzRY/KJKX3M /L3A== X-Received: by 10.140.105.118 with SMTP id b109mr3564699qgf.28.1398353077988; Thu, 24 Apr 2014 08:24:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.48.199 with HTTP; Thu, 24 Apr 2014 08:24:17 -0700 (PDT) In-Reply-To: <10329229.219334.1398352946960.JavaMail.nabble@jim.nabble.com> References: <10329229.219334.1398352946960.JavaMail.nabble@jim.nabble.com> From: Kevin Sutter Date: Thu, 24 Apr 2014 10:24:17 -0500 Message-ID: Subject: Re: Having trouble using extendable orm To: kate.tierney@ge.com, users@openjpa.apache.org Content-Type: multipart/alternative; boundary=001a1137d4a47bf53604f7cb7278 X-Virus-Checked: Checked by ClamAV on apache.org --001a1137d4a47bf53604f7cb7278 Content-Type: text/plain; charset=UTF-8 Sounds good, Kate. We have already made the necessary updates to trunk... Can you clarify what versions of OpenJPA you will be using so that we can properly target those service streams? Thanks. Kevin On Thu, Apr 24, 2014 at 10:22 AM, wrote: > Thanks for the quick reply. That allowed me to make some progress. > My next challenge is to figure out how to use the externalizer and factory > attributes in my orm.xml file. > > Thanks! > > > Hi Kate, > It looks like some namespace changes were accidentally backed out of the > documentation... When the Apache projects were required to do a cms wiki > update in early 2013, the namespace that we were using for these xsd files > was removed. We had to define a new namespace. Try this in your xml > instead... (I highlighted the changes) > > xmlns:openjpa="http://*openjpa.apache.org > */ns/orm" > > xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > version="2.0"> > > I'm not positive that this change alone will get you what you are looking > for... But, try this first and let us know the results. > > If you want to know the background information on this change in > namespaces, you can reference this JIRA: > https://issues.apache.org/jira/browse/OPENJPA-2368 > > FYI, as we are working to clean this up, we can make faster changes in > trunk vs the 2.2.2 release. You referenced the 2.2.2 documentation, so I'm > assuming you are using the 2.2.2 release. If you can experiment with > trunk, the changes will come faster... But, let us know the final release > that you would need these changes in. Thanks. > > Kevin > > > On Wed, Apr 23, 2014 at 12:47 PM, Tierney, Mary K (GE Healthcare) < > kate.tierney@ge.com> wrote: > > > I am trying to put together a prototype using an orm.xml file instead of > > using attributes. One of the features I would like to use is the > > @Externalizer/@Factory attributes. I have tried to follow the sample > > provided in the openjpa manual ( > > http://openjpa.apache.org/builds/2.2.2/apache-openjpa/docs/manual.pdf), > > but I get an error during compile - "Cannot find the declaration of > > element > > 'entity-mappings'." > > > > Based on the sample provided in the manual, I am using the following: > > > > > xmlns:openjpa="http://www.apache.org/openjpa/ns/orm" > > xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > version="2.0"> > > > > Can anyone provide any guidance on how to use this extendable schema? > > Should I be specifying the schema location? If so, what is the schema > > location? > > > > I am new to Java and OpenJPA, and am running out of search terms to > > Google. > > > > Any information you can provide would be appreciated. > > > > Thanks! > > > > > > Kate Tierney > > GE Healthcare IT > > Lead Software Engineer > > > > T: 802-859-6071 > > E: kate.tierney@ge.com > > www.gehealthcare.com > > > > 40 IDX Drive > > South Burlington, VT 05403 > > General Electric Company, GE Healthcare > > > > > > > Quoted from: > > http://openjpa.208410.n2.nabble.com/Having-trouble-using-extendable-orm-tp7586277p7586278.html > > > _____________________________________ > Sent from http://openjpa.208410.n2.nabble.com > > --001a1137d4a47bf53604f7cb7278--