@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface Table
If no Table annotation is specified for an entity class, the
default values apply.
Example:
@Table(name="CUST", schema="RECORDS")
public class Customer { ... }
| Modifier and Type | Optional Element and Description |
|---|---|
String |
catalog
(Optional) The catalog of the table.
|
String |
escapedName
(Optional) 编码之后的数据库表名,比如:表名是关键字、有空格
|
String |
name
(Optional) The name of the table.
|
app.myoss.cloud.core.utils.NameStyle |
nameStyle
table name or column name style
|
String |
schema
(Optional) The schema of the table.
|
public abstract String name
(Optional) The name of the table.
Defaults to the entity name.
public abstract String escapedName
public abstract String catalog
(Optional) The catalog of the table.
Defaults to the default catalog.
public abstract String schema
(Optional) The schema of the table.
Defaults to the default schema for user.
Copyright © 2018–2022. All rights reserved.