Excellent! FYI, when replying to these posts, please remember to copy the users@openjpa.apache.org list so that everyone can benefit.
Thanks, Kevin On Thu, Apr 24, 2014 at 10:56 AM, Tierney, Mary K (GE Healthcare) < kate.tier...@ge.com> wrote: > I was able to figure out how to get the externalizer/factory attributes > to work in my orm.xml! > > > > Thank you so much for your reply to my initial post. > > > > Kate > > > > *From:* Kevin Sutter [mailto:kwsut...@gmail.com] > *Sent:* Thursday, April 24, 2014 11:24 AM > *To:* Tierney, Mary K (GE Healthcare); users@openjpa.apache.org > *Subject:* Re: Having trouble using extendable orm > > > > 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, <kate.tier...@ge.com> 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! > > <quote author='Kevin Sutter'> > > 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) > > <entity-mappings xmlns="http://*openjpa.apache.org > <http://openjpa.apache.org>*/ns/orm/extendable" > xmlns:openjpa="http://*openjpa.apache.org > <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.tier...@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: > > > > <entity-mappings xmlns="http://www.apache.org/openjpa/ns/orm/extendable" > > 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.tier...@ge.com<mailto:kate.tier...@ge.com> > > www.gehealthcare.com<http://www.gehealthcare.com> > > > > 40 IDX Drive > > South Burlington, VT 05403 > > General Electric Company, GE Healthcare > > > > > > </quote> > Quoted from: > > http://openjpa.208410.n2.nabble.com/Having-trouble-using-extendable-orm-tp7586277p7586278.html > > > _____________________________________ > Sent from http://openjpa.208410.n2.nabble.com > > >