• Post Reply Bookmark Topic Watch Topic
  • New Topic

Override Superclass annotation  RSS feed

 
Alex O. Sul
Greenhorn
Posts: 3
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a big problem with annotations. That's what happens:

That's the Animal class:


This class have an annotation named "MyAnnotation", and receive the value "it's a id"

And i have the follow class:



My question: is there a way to override the annotation of the field "id" of the superclass Animal in the class Dog?

Thanks in advance.


 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class Dog doesn't even know there is an "id" field, so no.
 
Chitti Ruddarraju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!