1
最近,我打算通過hibernate.I的一篇文章看到了這個請賜教這個是什麼收益之間的差異本VS回報新類()
public Criteria createCriteria(String associationPath, String alias, int joinType) {
return new Subcriteria(this, associationPath, alias, joinType);//return new object
}
public Criteria createAlias(String associationPath, String alias, int joinType) {
new Subcriteria(this, associationPath, alias, joinType);
return this;//return this
}
你有鏈接到文章? – Thilo
我有一點答案,但沒有正確理解。 http://stackoverflow.com/questions/18062286/difference-between-creatcriteria-and-createalias – ThinkTank