--
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 mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/7a6eea2b-b9f1-4bc4-ab98-c8ac0abd7e16%40googlegroups.com.
I think that argument validation belongs in the Java code. Using default methods you could even add the test to the mapper interface.
On Thu, Oct 17, 2019, 11:25 PM 葛俊 <gejun...@gmail.com> wrote:
Hi Mybatis Contributors.--I'm thinking of add exception tag to mybatis xml fragment like following.When sometime we want to throw exception from sql when some condition can't match.I know it can be done from java code, but it may be more straightforward if we use it in sql.we could throw an runtimeException with the message like MybatisCoditionNotMatchException.how do you think of it. please share your opinion. If most approve it, I can make a pull request for it.Thanks.
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 mybati...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/2236dff3-f318-4827-9d58-34549f56caba%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CALhVUhwtmZRFHj6griLf-v5s11uFv%3D2ZAVNntam57CXdZKCeQg%40mail.gmail.com.