Package org.apache.ibatis.annotations
Annotation Interface AutomapConstructor
The marker annotation that indicate a constructor for automatic mapping.
How to use:
public class User { private int id; private String name; public User(int id) { this.id = id; } @AutomapConstructor public User(int id, String name) { this.id = id; this.name = name; } // ... }
- Since:
- 3.4.3
- Author:
- Tim Chen