All Downloads are FREE. Search and download functionalities are using the official Maven repository.

app.myoss.cloud.mybatis.table.TableConfig Maven / Gradle / Ivy

/*
 * Copyright 2018-2018 https://github.com/myoss
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package app.myoss.cloud.mybatis.table;

import java.util.Map;

import app.myoss.cloud.core.utils.NameStyle;
import lombok.Data;

/**
 * MyBatis Table 全局配置;实体类映射数据库表的全局配置
 *
 * @author Jerry.Chen
 * @since 2018年4月27日 上午12:24:07
 */
@Data
public class TableConfig {
    /**
     * 数据库中的catalog,如果设置了此属性,将在表名前面加上catalog指定的值
     * 

* (Optional) The catalog of the table. *

* Defaults to the default catalog. */ private String catalog = ""; /** * 数据库中的schema,如果设置了此属性,将在表名前面加上schema指定的值 *

* (Optional) The schema of the table. *

* Defaults to the default schema for user. */ private String schema = ""; /** * 数据库表名字前缀 */ private String tableNamePrefix = ""; /** * 数据库表名字后缀 */ private String tableNameSuffix = ""; /** * 数据库表名命名风格 *

* table name style *

* Defaults to snake_case. */ private NameStyle tableNameStyle = NameStyle.SNAKE_CASE; /** * 数据库表字段名命名风格 *

* column name style *

* Defaults to snake_case. */ private NameStyle columnNameStyle = NameStyle.SNAKE_CASE; /** * 逻辑删除数据,软删除,用字段标记数据被删除了,不做物理删除 */ private boolean logicDelete = false; /** * 数据库表中默认的"逻辑删除"字段名,如果数据库表中有匹配的字段名,则可以不用在每个实体类中设置 */ private String logicDeleteColumnName; /** * 数据标记为"逻辑删除"的值 */ private String logicDeleteValue; /** * 数据标记为"逻辑未删除"的值 */ private String logicUnDeleteValue; /** * 用户自定义配置 */ private Map customizeConfig; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy