You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried your configuration but couldn't reproduce the problem.
I haven't used mybatis and my plugins in some time and I had to dig out an older project at work.
Using your configuration above (and in the same order as it does matter during the generation) the selectByExampleWithRowbounds method does not have the @Override annotation.
So I suspect this is something that has changed in a newer version of mybatis.
It works with the following outdated configuration:
mybatis-generator-maven-plugin version 1.3.6
mybatis-generator-plugins version 1.3
mybatis version 3.4.5
I'll try to update my plugins to work with a newer mybatis and adapt them if necessary, but that is not something I'll have time to work on very soon.
My advice when working with the mybatis generator is:
Do not run the mybatis-generator automatically on every build
Instead:
run the mybatis-generator manually when the SQL tables change
Fix the compilation errors manually (Hopefully I'll be able to fix it soon)
Thanks for the great work.
I just tried to generate the interfaces using CreateGenericInterfacePlugin. However, I also used the MBG's supplied RowBoundsPlugin
The base interface gets correctly generated, however the
selectByExampleWithRowbounds
is marked override when it does not exist on the base classPossibly, the base interface could implement this method if the plugin is found in the pipeline. Or else do not add the
@Override
annotation.Should you need clarification, please ask.
Thank you
The text was updated successfully, but these errors were encountered: