Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey H. Coffield" Newsgroups: comp.lang.java.programmer Subject: Re: JPA OneToOne annotation across two different jdbc drivers Date: Sun, 27 Nov 2011 16:07:39 -0800 Organization: A noiseless patient Spider Lines: 32 Message-ID: References: <26839074.317.1321974960424.JavaMail.geo-discussion-forums@prdy11> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 28 Nov 2011 00:07:41 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="+DEw9szhsfaErv7+xHBaTQ"; logging-data="12983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qpCYtLiBtdZRvUUMUlQ94XVg2RcR+wwc=" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Lightning/1.0b2 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:pkxuFarVGOzu+JdLIjGalzhF0Gk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10283 On 11/22/2011 06:34 PM, Jeffrey H. Coffield wrote: > I just found out from another source that this feature takes EclipseLink > 2.3 or later which takes NetBeans 7.1. I was using Netbeans 7.0.1 so > nothing worked. NetBeans 7.1 is in Beta now so I am going to download it > and try again. > > Thanks to those who responded. > > Jeff Coffield > Answering my own post again. I got the annotations for OneToOne and OneToMany to work bidirectionally across two different databases with different JDBC drivers using NetBeans 7.1 Beta and EclipseLink 2.3. It appears to be quite fragile as I got numerous NetBeans internal errors until I got everything exactly right. If someone is interested, I will put together an outline, but for someone more familiar with the way annotations work, the Sun Eclipselink pages on composite persistence units do point the way. It is very new and I suspect some aspects will change as more development is done, so I am not sure we are going to adopt this just yet but it is possible to do and does seem to be the in the future of JPA. Also we have done no testing on using these annotations to actually update databases. Again, thanks to all who posted comments. Jeff Coffield