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


Groups > comp.lang.java.help > #1538

Re: MappedSuperClass annotation

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.help
Subject Re: MappedSuperClass annotation
Date 2012-01-27 10:50 -0800
Organization albasani.net
Message-ID <jfurls$srq$1@news.albasani.net> (permalink)
References <4f22cb6e$2@news.x-privat.org>

Show all headers | View raw


Pidi wrote:
> If an abstract class inherits from an abstract superclass annotated with
> @MappedSuperclass, it inherits the annotation too or if I want both annotated
> I have to replicate the annotation?
>
> Ex:
> @MappedSuperclass
> public abstract Class1 {
> ...
> }
>
> @MappedSuperclass <-- I have to declare it or it's implicit?
> public abstract Class2 extends Class1{
> ...
> }

You have to declare it.  Annotations do not inherit.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

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


Thread

MappedSuperClass annotation Pidi <lamia@mail.com> - 2012-01-27 17:05 +0100
  Re: MappedSuperClass annotation Lew <noone@lewscanon.com> - 2012-01-27 10:50 -0800
    Re: MappedSuperClass annotation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-01-27 12:50 -0800
      Re: MappedSuperClass annotation Lew <noone@lewscanon.com> - 2012-01-27 19:24 -0800
        Re: MappedSuperClass annotation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-01-29 08:53 -0800
          Re: MappedSuperClass annotation Lew <noone@lewscanon.com> - 2012-01-29 10:05 -0800
            Re: MappedSuperClass annotation Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-01-29 22:45 -0800
              Re: MappedSuperClass annotation Lew <noone@lewscanon.com> - 2012-01-30 10:06 -0800
                Re: MappedSuperClass annotation Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-31 06:52 -0400
                Re: MappedSuperClass annotation Lew <noone@lewscanon.com> - 2012-01-31 11:07 -0800
      Re: MappedSuperClass annotation Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-28 12:02 -0400

csiph-web