Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: JPA OneToOne annotation across two different jdbc drivers Date: Wed, 23 Nov 2011 12:38:00 -0800 (PST) Organization: http://groups.google.com Lines: 16 Message-ID: <18687925.6.1322080680734.JavaMail.geo-discussion-forums@prez7> References: <26839074.317.1321974960424.JavaMail.geo-discussion-forums@prdy11> Reply-To: comp.lang.java.programmer@googlegroups.com NNTP-Posting-Host: 2620:0:1000:2404:224:d7ff:fe69:5838 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1322081088 12465 127.0.0.1 (23 Nov 2011 20:44:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Nov 2011 20:44:48 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:2404:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10197 Jeffrey H. Coffield wrote: > Lew wrote: >> Which annotations did you have in mind? Certainly '@Entity' and '@EntityManager' will work with multiple persistence units. Of course, annotations like '@OneToMany' will not, AFAIK, since they map to foreign-key relationships in the DBMS. >> > I had in mind specifically the annotation in the subject. OneToOne. With > that, I think I could get the rest to work or understand the problems > better. Don't leave things just in the subject line. That isn't part of the query. Always put enough in the _body_ of your post. All too often on Usenet, the subject line turns out not to relate very well with the content of the post. The convention therefore is to make the body self-sufficient. You did not do that. -- Lew