How to manage the mappedStatements of configuration, such as remove a statement with designative key.
ApplicationContext ctx = ApplicationContextUtil.getContext();
I want to remove a statement from original mappedStatements and update configuration 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/be010390-14c1-49b8-8946-fccaff9ca5d4%40googlegroups.com. |
Hi, It is not possible. What do you want to achieve? Regards, Iwao On Thu, Jun 6, 2019 at 6:14 PM 何震东 <[hidden email]> wrote: How to manage the mappedStatements of configuration, such as remove a statement with designative key. 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CA%2Buep2Q2GU5VwRHMkFwf%2B0QXa3E88M%3D8ggHRVXkLkK6PCrig5Q%40mail.gmail.com. |
hi
i want to write sql in the request and execute it by mybatis.so I push them to mapperstatement,but it bring a big problem which result in mapperstatement keep more complexing and larger unless I restart the application -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/9371fb63-c162-449c-805a-ca5ed15de14c%40googlegroups.com. |
It sounds like a typical XY Problem. https://en.wikipedia.org/wiki/XY_problem You should explain the initial requirement. Why can't you define SQLs in XML or annotation mappers? Have you considered using SQL provider annotation? If it doesn't satisfy your requirement, how? Regards, Iwao On Thu, Jul 18, 2019 at 12:35 AM 何震东 <[hidden email]> wrote: hi 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CA%2Buep2SzvZ8SMfEOE_gSOdiTO9nPPfi9jK%2BKVhSfto8sMjQ35g%40mail.gmail.com. |
Free forum by Nabble | Edit this page |