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: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: JPA OneToOne annotation across two different jdbc drivers Date: Sat, 26 Nov 2011 21:22:17 -0800 Organization: A noiseless patient Spider Lines: 54 Message-ID: <45i3d7hf62sddsbmt39c13nhtocgk7tacm@4ax.com> References: <26839074.317.1321974960424.JavaMail.geo-discussion-forums@prdy11> <18687925.6.1322080680734.JavaMail.geo-discussion-forums@prez7> <25uqc7pq26utgv2ocni72outlqulk36u63@4ax.com> <4ed05107$0$289$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="JCn9+dUdCQH+ycRezr2Sxw"; logging-data="18552"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+3sQ3jhVd5u0SNXyZDrzqmel13N4ogng=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:dpNqWXwmvxoQGbtBKnZ4IsjBMvI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10275 On Fri, 25 Nov 2011 21:37:57 -0500, Arne Vajhøj wrote: >On 11/23/2011 5:52 PM, Gene Wirchenko wrote: >> On Wed, 23 Nov 2011 12:38:00 -0800 (PST), Lew >> wrote: >>> 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. >> >> It does not matter if the subject line is relevant. Often, >> people do not read it. Consider a post with subject >> Possible Compiler Bug with Foo 1.2.3 >> and the version is not mentioned in the post body. Quite often, you >> will see a reply asking which version of Foo is being used. > >It happens. > >But whose fault is that? The replier? >I think it would be fair for a poster to assume that the >people trying to reply read everything. It might be fair, but IME, it is not realistic. >Starting to assume that they do not: >- read the subject >- read code examples >- read any text beyond 20 lines >- remember what was written at the top when reading at the bottom >etc.etc. makes it ridiculous to try and post a question. It does make it more challenging than optimum. You really seem to be in a contrarian mood with your latest posts. Please lighten up. Sincerely, Gene Wirchenko