Why annotation @Results not support 'extends' ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Why annotation @Results not support 'extends' ?

unknown Mr.
Here is the scheme of <ResultMap/>.

<!ELEMENT resultMap (constructor?,id*,result*,association*,collection*, discriminator?)>
<!ATTLIST resultMap
extends CDATA #IMPLIED <-- this field is not supported in annotation
autoMapping (true|false) #IMPLIED

and this is @ResultsĀ 

* @author Clinton Begin
public @interface Results {
* The name of the result map.
String id() default "";
Result[] value() default {};

But in most cases we will extracted some common attributes to basic entity, it look like "You should use xml mapper if you want to use 'extends'".
Or are there some other way to do the same thing?

You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.