您的位置:首页 > 其它

使用hibernate的Criteria来动态改变对象关联方式

2008-03-26 14:55 393 查看
hibernat的Criteria提供了很多种方式来零时修改对象的关联方式,主要有如下3中:
1.createAlias(String associationPath, String alias, int joinType)
2.createCriteria(String associationPath, String alias, int joinType)
3.setFetchMode(String associationPath, FetchMode mode)
经过我试验,只有第1个方法是对的,2、3方法的接口都存在bug
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hibernate string