0
public Mainsubjects getChosenMain(String loc, int id) {
List list = hibernateTemplate.find("from Mainsubjects where locale = ? and id = ?", loc, id);
Mainsubjects main = (Mainsubjects) list.get(0);
return main;
}
給我:
getChosenMain(java.lang.String,int) in fi.utu.tuha.db.DatabaseOperations cannot implement getChosenMain(java.lang.String,int) in fi.utu.tuha.db.DatabaseManager
return type fi.utu.tuha.domain.Mainsubjects is not compatible with java.util.List<fi.utu.tuha.domain.Mainsubjects>
我不知道爲什麼。我正在將對象轉換回來。
沒錯。我再次失明瞭! – mjgirl