1 public int getCountUser() throws ParseException { 2 Session hSession = sessionFactory.getCurrentSession(); 3 Query query = hSession.createQuery("select count(*) from WgUserinfoEntity"); 4 return ((Number)query.uniqueResult()).intValue(); 5 }
时间: 2024-11-10 01:16:39