Add a BaseMapper interface and specific mappers extend it to simplify the code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Add a BaseMapper interface and specific mappers extend it to simplify the code

Xyz Amos
Why does MBG do this ,otherwise create Mapper's interface one by one?
can i  achieve this using current MBG to generator a BaseMapper and empty Mappers extends it ?

--
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Add a BaseMapper interface and specific mappers extend it to simplify the code

Jeff Butler
I'm not sure what you are asking.  It sounds like you want to do some kind of generic mapper interface.  I'm not sure that will actually work in MyBatis - so you should check that first.  If you can get something coded as an example of how you would like things to work you could probably write a plugin to make it happen.

Jeff Butler


On Wed, Aug 24, 2016 at 8:38 AM Xyz Amos <[hidden email]> wrote:
Why does MBG do this ,otherwise create Mapper's interface one by one?
can i  achieve this using current MBG to generator a BaseMapper and empty Mappers extends it ?

--
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.

--
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.
Loading...