comparison src/main/java/de/mpiwg/gazetteer/utils/DBService.java @ 26:ce2e3f2814c0

new: check userGroup when login
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 30 Jun 2015 14:31:29 +0200
parents 2c6f44ef34ab
children 3b3e2963c8f7
comparison
equal deleted inserted replaced
25:86694755415d 26:ce2e3f2814c0
611 return list; 611 return list;
612 } 612 }
613 613
614 protected static List<LGBranch> getAllLGBranchFromDB(){ 614 protected static List<LGBranch> getAllLGBranchFromDB(){
615 List<LGBranch> list = null; 615 List<LGBranch> list = null;
616 616
617 Session session = HibernateUtil.getSessionFactory().getCurrentSession(); 617 Session session = HibernateUtil.getSessionFactory().getCurrentSession();
618 session.getTransaction().begin(); 618 session.getTransaction().begin();
619 Query query = session.createQuery("from LGBranch"); 619 Query query = session.createQuery("from LGBranch");
620 list = query.list(); 620 list = query.list();
621 session.getTransaction().commit(); 621 session.getTransaction().commit();