未找到:值登录错误发生,这里登录是我的域
def findAll():List[Login]= {
var config: AnnotationConfiguration = new AnnotationConfiguration
/*Error:*/ config.addAnnotatedClass(Login.Class)
var factory: SessionFactory = config.configure().buildSessionFactory()
var session: Session = factory.getCurrentSession()
session.beginTransaction()
var queryString = "from LW_LOGIN"
var queryResult: Query = session.createQuery(queryString)
var allUsers = queryResult.list()
return allUsers.asInstanceOf[List[Login]];
}
这里登录是我的域