2
hibernate session to list conversion
Compilation Error occured when java converted into scala..!!
錯誤: 類型不匹配;實測值:java.util.List中在需要類型0 [0?]: scala.collection.immutable.List [com.scala.entity.User]休眠會話到列表轉換
Code: def getAllUsers(): List[User] = {
return getSession().createQuery("from User where reslut='false'").list()
}