/* * Copyright (c) 2011-2020, baomidou (jobob@qq.com). *
* 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 *
* https://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 me.zhengjie.db.mybatis; import com.baomidou.mybatisplus.annotation.TableName; import java.lang.annotation.Annotation; /** * JAP 转换使用 * * @author liaojinlong * javax.persistence.Table * @since 2020/6/28 13:56 */ public class TableNameImp implements TableName { private String value = ""; private String schema = ""; private String resultMap = ""; private boolean keepGlobalPrefix = false; private String[] excludeProperty = new String[0]; private boolean autoResultMap = false; private Class extends Annotation> annotationType; /** * 实体对应的表名 */ @Override public String value() { return value; } /** * schema * * @since 3.1.1 */ @Override public String schema() { return schema; } /** * 是否保持使用全局的 tablePrefix 的值 *
只生效于 既设置了全局的 tablePrefix 也设置了上面 {@link #value()} 的值
*