Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/utils/DBService.java @ 68:7e161f2e6660
topic nameEng to lowercase only when saving as tag
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 05 Aug 2016 13:36:37 +0200 |
parents | 0a9937b06cc3 |
children | 110be241ff54 |
comparison
equal
deleted
inserted
replaced
67:0a9937b06cc3 | 68:7e161f2e6660 |
---|---|
1157 Session session = HibernateUtil.getSessionFactory().getCurrentSession(); | 1157 Session session = HibernateUtil.getSessionFactory().getCurrentSession(); |
1158 session.getTransaction().begin(); | 1158 session.getTransaction().begin(); |
1159 Query query = session.createQuery("from LGTopicSectionRelation"); | 1159 Query query = session.createQuery("from LGTopicSectionRelation"); |
1160 list = query.list(); | 1160 list = query.list(); |
1161 session.getTransaction().commit(); | 1161 session.getTransaction().commit(); |
1162 | |
1162 | 1163 |
1163 return list; | 1164 return list; |
1164 } | 1165 } |
1165 | 1166 |
1166 protected static int deleteTopicSectionRelationFromDB(Long relationId){ | 1167 protected static int deleteTopicSectionRelationFromDB(Long relationId){ |