日期:2014-05-20 浏览次数:20650 次
<hibernate-mapping package="net.greatsoft.nccm.model.compensation"> <class name="Dict" abstract="true"> <id name="dictId" column="DICTIONARYID" type="long"> <generator class="sequence"> <param name="sequence">SEQUENCE_DICTIONARYID</param> </generator> </id> <property name="name" column="NAME" length="100" not-null="false" type="string"/> <set name="subDicts" inverse="true" lazy="true"> <key column="parentId" /> <one-to-many class="net.greatsoft.nccm.model.compensation.Dict" /> </set> <many-to-one name="superior" column="parentId" class="net.greatsoft.nccm.model.compensation.Dict"/> <!--药品目录--> <union-subclass name="MedicineDict" table="DICTIONARY_MEDICINE"> <property name="spec" column="SPECIFICATION" length="50" not-null="false" type="string"/> </union-subclass> <!--服务设施目录--> <union-subclass name="MaterialDict" table="DICTIONARY_MATERIAL"> <property name="spec" column="SPECIFICATION" length="20" not-null="false" type="string"/> </union-subclass> </class> </hibernate-mapping>