Package org.apache.ibatis.annotations
Annotation Interface Param
The annotation that specify the parameter name.
How to use:
public interface UserMapper {
@Select("SELECT id, name FROM users WHERE name = #{name}")
User selectById(@Param("name") String value);
}
- Author:
- Clinton Begin
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueReturns the parameter name.- Returns:
- the parameter name
-