Open Nobuyuki-Inaba opened 7 years ago
Hi @Nobuyuki-Inaba, Thanks for your suggestion ! We are welcome your contribution :) Could you contribute for this ?
MyBatis OGNL expressions in common use:
The OGNL language reference see https://commons.apache.org/proper/commons-ognl/language-guide.html#Appendix:_OGNL_Language_Reference.
@org.apache.commons.lang3.StringUtils@isEmpty(data)
org.apache.commons.lang3.StringUtils is too long, can any alias to use it? like
StringUtils@isEmpty(data)
@abel533
Hi,
I know that you are able to call static methods in My Batis Mapper XML files, but the manual, I think, doesn't explain the way directly. I'm afraid that some of my colleagues had troubled because they don't know that way. Surely, the "Dynamic SQL" page explains like this.
, so it's make sense that you can call static methods using OGNL syntax, but its' not straightforward explanation.
I would like to suggest to add the below explanation to "Mapper XML Files" page. If you'd add the explanation to the page, it would be great.
You can call static methods and refer static fields like this, calling a static method; @class@method(args), e.g.
refering a static field: @class@field, e.g.
Best regards, Nobuyuki Inaba