java.lang.Object
org.miaixz.bus.mapper.builder.TableAnnotationBuilder
- All Implemented Interfaces:
Comparable<org.miaixz.bus.core.Order>,org.miaixz.bus.core.Order,TableSchemaBuilder,ORDER
默认表构建器,支持处理 jakarta.persistence 注解的实体类
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.miaixz.bus.mapper.builder.TableSchemaBuilder
TableSchemaBuilder.Chain -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTable(Class<?> entityClass, TableSchemaBuilder.Chain chain) 根据注解或默认命名规则为实体类创建表元数据protected voidprocessTableAnnotations(TableMeta tableMeta, Class<?> entityClass) 处理 @Table 注解,设置表名、目录和模式,或使用默认命名规则Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.core.Order
compareTo, order
-
Constructor Details
-
TableAnnotationBuilder
public TableAnnotationBuilder()
-
-
Method Details
-
createTable
根据注解或默认命名规则为实体类创建表元数据- Specified by:
createTablein interfaceTableSchemaBuilder- Parameters:
entityClass- 实体类chain- 表结构构建器链- Returns:
- 表元数据
-
processTableAnnotations
处理 @Table 注解,设置表名、目录和模式,或使用默认命名规则- Parameters:
tableMeta- 表元数据entityClass- 实体类
-