0
:值登錄出錯,這裏登錄是我的域名未發現:價值登錄出錯找不到
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]];
}
這裏登錄是我的域名