package com.xjrsoft.module.prdManage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.pictc.annotations.datalog.JoinCaseType;
import com.pictc.annotations.datalog.JoinType;
import com.pictc.annotations.datalog.LogJoin;
import com.pictc.annotations.datalog.LogJoinColumn;
import com.pictc.annotations.datalog.ValueDirectionType;
import com.pictc.orm.BaseMasterEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
* @title: 测试
* @Author 管理员
* @Date: 2025-09-15
* @Version 1.0
*/
@Data
@TableName("testfrom_2")
@ApiModel(value = "测试对象", description = "测试")
public class Testfrom2 extends BaseMasterEntity {

    private static final long serialVersionUID = 1L;

    /**
    * 单行文本
    */
    @ApiModelProperty("单行文本")
    private String danXingWenBen7818;
    /**
    * 单行文本
    */
    @ApiModelProperty("单行文本")
    private String danXingWenBen9043;
    
    /**
     * 单行文本
     */
    @ApiModelProperty("家电")
    private String applianceId;
   
    @LogJoin(name = "家电管理",
    columns = {
    		@LogJoinColumn(field = "applianceId",relatedField = "id", valueDirection = ValueDirectionType.LEFT)
    }, caseType = JoinCaseType.NONE, target = DemoAppliance.class, type = JoinType.ONE)
    private DemoAppliance appliance;
    
    @Version
    private Integer dataVersion; //类型建议为 Integer/Long

}