Hello
I have a problem to write the syntax using an enum in a if in MyBatis annotation.
@Delete("<script>DELETE FROM tb_a WHERE "
+ "<if test='context.name().equals(ALBUM)'>"
+ " album_id = #{id}"
+ "</if>"
+ "<if test='context.name().equals(VIDEOLIBRARY)'>"
+ " videolibrary_id = #{id}"
+ "</if>"
+ "</script>")
the correct syntax as fare I know is like this
But I don't know how to write it with annotation. I get this error message enter image description here
Thanks for your help
Sent from the mybatis-user mailing list archive at Nabble.com.
--
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/1608545689151-0.post%40n3.nabble.com.