mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
doc: 添加 @Column(isLarge = true) 的其他使用方式。
This commit is contained in:
parent
82286d55ae
commit
fa28e0e7fa
@ -179,7 +179,7 @@ public class Tables {
|
||||
|
||||
//在 DEFAULT_COLUMNS 中是没有 content 字段。
|
||||
public QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, TITLE, CREATED, MODIFIED};
|
||||
public QueryColumn[] ALL_COLUMNS = new QueryColumn[]{ID, TITLE, CONTENT, CREATED, MODIFIED};
|
||||
public QueryColumn ALL_COLUMNS = new QueryColumn("*");
|
||||
}
|
||||
}
|
||||
```
|
||||
@ -187,12 +187,12 @@ public class Tables {
|
||||
一般的场景中,我们查询内容应该如下:
|
||||
```java
|
||||
QueryWrapper.create()
|
||||
//使用的是 DEFAULT_COLUMNS
|
||||
.select(ARTICLE.DEFAULT_COLUMNS)
|
||||
.from(DEFAULT_COLUMNS)
|
||||
.where(...)
|
||||
.select(ARTICLE.DEFAULT_COLUMNS) //使用的是 DEFAULT_COLUMNS
|
||||
.from(ARTICLE);
|
||||
```
|
||||
|
||||
> 此外,对于一些需要过滤的列,例如:`create_time`、`update_time` 等,也可以使用 `@Column(isLarge = true)` 去忽略查询。
|
||||
|
||||
## isLogicDelete
|
||||
|
||||
这部分的文档参考 [逻辑删除章节](./logic-delete.md)。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user