Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7688

Re: Persistence API - magic?

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Persistence API - magic?
Date 2011-09-07 11:06 -0700
Organization http://groups.google.com
Message-ID <92a9f6aa-f306-4259-8978-895e4e97afbf@glegroupsg2000goo.googlegroups.com> (permalink)
References (1 earlier) <j46ev4$fpo$1@dont-email.me> <b1517a0a-2f5a-4695-9f5f-37b83b227032@en1g2000vbb.googlegroups.com> <j485b6$qe0$1@dont-email.me> <ee706e46-a109-430f-937c-27bd7db638e7@glegroupsg2000goo.googlegroups.com> <j48bav$594$1@dont-email.me>

Show all headers | View raw


markspace wrote:
> 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
> 
> <http://www.amazon.com/Pro-JPA-Mastering-Persistence-Technology/dp/1430219564>
> 
>> 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.

The answer to "How would I mix field and accessor JPA annotations?" is the same as Frank Zappa's answer to "How would I break into the music business?" - "Don't."

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Persistence API - magic? nroberts <roberts.noah@gmail.com> - 2011-09-06 15:52 -0700
  Re: Persistence API - magic? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-06 21:40 -0300
    Re: Persistence API - magic? nroberts <roberts.noah@gmail.com> - 2011-09-07 07:56 -0700
      Re: Persistence API - magic? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-07 17:34 -0300
  Re: Persistence API - magic? markspace <-@.> - 2011-09-06 17:47 -0700
    Re: Persistence API - magic? Lew <lewbloch@gmail.com> - 2011-09-06 18:26 -0700
      Re: Persistence API - magic? markspace <-@.> - 2011-09-06 19:01 -0700
    Re: Persistence API - magic? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-07 06:14 -0300
    Re: Persistence API - magic? nroberts <roberts.noah@gmail.com> - 2011-09-07 08:10 -0700
      Re: Persistence API - magic? markspace <-@.> - 2011-09-07 09:15 -0700
        Re: Persistence API - magic? Lew <lewbloch@gmail.com> - 2011-09-07 10:36 -0700
          Re: Persistence API - magic? markspace <-@.> - 2011-09-07 10:57 -0700
            Re: Persistence API - magic? Lew <lewbloch@gmail.com> - 2011-09-07 11:06 -0700
  Re: Persistence API - magic? Lew <lewbloch@gmail.com> - 2011-09-06 18:09 -0700
  Re: Persistence API - magic? Roedy Green <see_website@mindprod.com.invalid> - 2011-09-08 12:32 -0700
    Re: Persistence API - magic? "John B. Matthews" <nospam@nospam.invalid> - 2011-09-08 19:23 -0400

csiph-web