HQL error: with-clause referenced two different from-clause elements
问题 I am getting started with Hibernate and I am using HQL, using some joins to retrieve data from the db but getting this error, any help on how to solve this is appreciated. Field.hbm.xml file: <id name="id" type="string"> <column name="field_map_cd" /> <generator class="assigned"></generator> </id> Rule.hbm.xml file: <many-to-one name="src_field_map" column="field_map_cd" not-null="true" insert="false" update="false"/> <many-to-one name="tgt_field_map" column="field_map_cd" not-null="true"