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: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Persistence API - magic? Date: Wed, 07 Sep 2011 10:57:36 -0700 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: <7e3a3be9-8960-4b94-8028-2da962435fc8@u6g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 7 Sep 2011 17:57:51 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="5412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186gHUCDvxyuCyg7hlcbMSuZaqRfxqyzIE=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 In-Reply-To: Cancel-Lock: sha1:NksxKdIR03mQgtAEyO7JXBbcTx0= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7686 On 9/7/2011 10:36 AM, Lew wrote: > Does that work for you? I seem to remember getting error messages > when I tried to mix field and accessor JPA annotations in the same > class. Hmm, I haven't actually tried it. That's copied from a book. I was going link to this anyway for the op: Pro JPA 2, by Mike Keith and Merrick Schincariol, Apress > Even if allowed, it's not a good practice. Yes, the example called it out as being "unusual" but they wanted to give an example how it would be done, if needed.