Example of using @OverrideAnnotationWith

Min2liz

New Member
Can anyone give me an example of how I would use the JAXB annotation \[code\]@OverrideAnnotationWith\[/code\]? It came up in my Eclipse intellisense and sounded like what I needed to do my task (more details below), but I can't find anything on it except for this and others like it. Does the fact that there's almost no mention of it online mean that it's not a well-known and/or recommended annotation to use?My task:ClassB extends ClassA. ClassB uses all the fields/methods/annotations of ClassA. After construction (so I can't change the inheritance path), ClassB wants to override one of ClassA's fields and not allow it in its xml.
 
Back
Top