我无法将此表达式转换为 Criteria 表达式:
SELECT profile_profiles.profile_sup_id
FROM profil
INNER JOIN profile_profiles ON profile_profiles.profile_id = profil.id
AND profil.id = 4
任何人都可以帮忙吗?
我有一张桌子'Profil'多对多和refelxive
配置文件 1 --- profile_profiles --- 配置文件 2
public class Profil implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private String libelle;
private Set<Profil> profiles = new HashSet<Profil>(0);
...
}
血红蛋白
<set name="profiles" table="profile_profiles" cascade="all">
<key column="profile_id" />
<many-to-many column="profile_sup_id" class="com.steriamedshore.proboard.model.referentiel.Profil" />
</set>