| 限定符和类型 | 类和说明 |
|---|---|
static class |
PluginAnnotationSample.DeleteCheckByIdAMI |
static class |
PluginAnnotationSample.DepartmentInfo |
static interface |
PluginAnnotationSample.MyBaseMapper<T>
构造一个自定的Mapper方法,继承所有BaseMapper,但deleteById会做一些特殊逻辑
|
static interface |
PluginAnnotationSample.MyMapper |
static class |
PluginAnnotationSample.Name |
static class |
PluginAnnotationSample.TenantUser |
static class |
PluginAnnotationSample.UserDetail |
static class |
PluginAnnotationSample.UserInfo |
| 构造器和说明 |
|---|
PluginAnnotationSample(SQLManager sqlManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
loadMore()
查询数据后,在根据注解 @LoadOne定义加载更多数据
|
static void |
main(String[] args) |
void |
tenant()
查询前根据注解 @Tenant,提供一些必要的上下文参数
|
void |
testJacksonAnnotation()
自定义个Json注解 @Jackson,用于序列化到数据库,或者反序列化
|
void |
testMatcherAnnotation()
自定义一个mapper的扩展注解@Matcher,使得mapper参数中有一个Condition类,能构造查询条件。
|
public PluginAnnotationSample(SQLManager sqlManager)
public void testJacksonAnnotation()
public void testMatcherAnnotation()
public void loadMore()
public void tenant()
Copyright © 2020. All rights reserved.