Equipment.java
825 字节
package com.skua.modules.equipment.pojo;
import com.skua.modules.equipment.entity.EquipmentAsset;
import com.skua.modules.equipment.entity.EquipmentExt;
import com.skua.modules.equipment.entity.EquipmentInfo;
import com.skua.tool.annotation.JoinSqlAnno;
import lombok.Data;
/**
* @author sonin
* @date 2021/9/27 9:24
*/
@Data
public class Equipment {
@JoinSqlAnno(targetClass = EquipmentInfo.class, foreignKey = "assetId")
private EquipmentAsset equipmentAsset;
@JoinSqlAnno(targetClass = EquipmentExt.class, foreignKey = "infoId")
private EquipmentInfo equipmentInfo;
// @JoinSqlAnno
// private EquipmentExt equipmentExt;
public Equipment() {
equipmentAsset = new EquipmentAsset();
equipmentInfo = new EquipmentInfo();
//equipmentExt = new EquipmentExt();
}
}