-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
// mapper接口中的实现
@Lang(Caching.class)
@Options(
useGeneratedKeys = true,
keyProperty = "id"
)
@InsertProvider(
type = EntityProvider.class,
method = "insert"
)
<S extends T> int insert(S entity);// pojo类
@Entity.Table(value = "sys_user", remark = "用户表", autoResultMap = true)
public class SysUser {
@Entity.Column(value = "user_id", id = true, useGeneratedKeys = true)
private Long userId;
// ...
}我必须单独提供一个id字段并实现get/set方法以获取自增主键?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels