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


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

Re: MappedSuperClass annotation

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.help
Subject Re: MappedSuperClass annotation
Date Fri, 27 Jan 2012 10:50:36 -0800
Organization albasani.net
Lines 22
Message-ID <jfurls$srq$1@news.albasani.net> (permalink)
References <4f22cb6e$2@news.x-privat.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net 0RC6v8Ev/0xnpvLAqzCFDPjp7TpUvuznEeu+xkfvDIvl2ujXFjR4wUvZTOsNBwEfdVUyhKzVCOuZ9vKGQle6+e7qWeMfVJg3tkWH1iU0UhHz46WH64+As59i/f4UK6TB
NNTP-Posting-Date Fri, 27 Jan 2012 18:50:36 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="CEMf0vl1K3U7ogZlIjx3jESrgfOzikCEXBihxLO1FnVo0eH04ES/tEtCOK576UJuljZjQ4q+nLy+IrsOmTYM1QlcimceUEAPwZeiaJNV2drh5WeTxU6274UHwB3F2uH8"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0
In-Reply-To <4f22cb6e$2@news.x-privat.org>
Cancel-Lock sha1:Bv9hzm63fEzRseyLHB9dLvSUfnw=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.help:1538

Show key headers only | 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