Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/site/markdown/sqlmap-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,18 @@ If a parameter object of type User was passed into that statement, the id, usern

That's nice and simple for passing parameters into statements. But there are a lot of other features of parameter maps.

When MyBatis evaluates an OGNL expression, you can also call static methods or reference static fields using the `@class@member` syntax. For example:

```xml
<if test="@org.apache.commons.lang3.StringUtils@isEmpty(title)">
AND title is null
</if>
```

```xml
${@java.lang.Math@PI}
```

First, like other parts of MyBatis, parameters can specify a more specific data type.

```
Expand Down