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(required)The name of the database table
aliasString""An optional alias for the table, used in SQL queries with joins

Usage Example

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

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

Built with ❤️ by Tang