67,513
社区成员
发帖
与我相关
我的任务
分享
public class DevCurve {
public int dev_type; //pk
public int curve_id;
... get set ...
}
public class FacilityInfo {
public int id; //pk
public String name;
public SubstationInfo substation;
public InverterRoom inverterroom;
public DevCurve devtype;
.... get set ...
}
<class name="com.sacnzcx.app.domain.DevCurve" table="WEB_DevCurve">
<id column="id" name="dev_type" type="integer"/>
<property column="curve_id" generated="never" lazy="false"
name="curve_id" type="integer"/>
</class>
<class name="com.sacnzcx.app.domain.FacilityInfo" table="FAC_INFO_LIB">
<id column="REC_ID" name="id" type="int">
<generator class="native"/>
</id>
<property column="REC_NAME" generated="never" lazy="false" name="name" type="string"/>
<many-to-one column="DEV_TYPE" name="devtype" class="com.sacnzcx.app.domain.DevCurve"/>
</class>