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()
}