Skip to content

Table Annotation

The @Table annotation is used to mark a class as an entity and specify the corresponding database table information.

If the @Table annotation is not specified, Kite ORM will convert the class name to snake_case as the table name.

Parameters

ParameterTypeDefault ValueDescription
valueString""The name of the database table
aliasString""An optional alias for the table, used in SQL queries with joins
dynamicTableNameKClass<out DynamicTableProcessor>DynamicTableProcessor::classThe local dynamic table name processor(Local Configuration)

Usage Example

java
import com.tang.kite.annotation.Table;

@Table(value = "account", alias = "a")
public class Account {}

Released under the MIT License