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

com.github.myoss.phoenix.mybatis.repository.entity.LogicDeleteEntity Maven / Gradle / Ivy

The newest version!
/*
 * 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 com.github.myoss.phoenix.mybatis.repository.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.github.myoss.phoenix.core.constants.PhoenixConstants;
import com.github.myoss.phoenix.mybatis.table.annotation.Column;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 逻辑删除实体基类
 *
 * @author Jerry.Chen
 * @since 2018年5月9日 下午2:20:26
 */
@Accessors(chain = true)
@Data
public class LogicDeleteEntity implements BaseEntity {
    private static final long  serialVersionUID          = 8520422267799966859L;
    /**
     * LogicDeleteEntity label
     */
    public static final String LABEL_LOGIC_DELETE_ENTITY = "LogicDeleteEntity";

    /**
     * Database Column Name: is_deleted
     * 

* Database Column Remarks: 是否删除 *

*/ @JSONField(label = LABEL_LOGIC_DELETE_ENTITY) @Column(name = "is_deleted", nullable = false, jdbcTypeName = "CHAR", logicDelete = true, logicDeleteValue = PhoenixConstants.Y, logicUnDeleteValue = PhoenixConstants.N) private String isDeleted; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy