Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/SessionHolder.java @ 309:e91873b8b937
Bugfix: Call correct method to retrieve and initialize an instance of SessionFactoryProvider.
flys-artifacts/trunk@1690 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 12:59:21 +0000 |
parents | 084995dd1c9c |
children |
comparison
equal
deleted
inserted
replaced
308:084995dd1c9c | 309:e91873b8b937 |
---|---|
23 } | 23 } |
24 | 24 |
25 public synchronized static Session create() { | 25 public synchronized static Session create() { |
26 logger.debug("create"); | 26 logger.debug("create"); |
27 SessionFactory sessionFactory = | 27 SessionFactory sessionFactory = |
28 SessionFactoryProvider.createSessionFactory(); | 28 SessionFactoryProvider.getSessionFactory(); |
29 return sessionFactory.openSession(); | 29 return sessionFactory.openSession(); |
30 } | 30 } |
31 | 31 |
32 public static Session acquire() { | 32 public static Session acquire() { |
33 logger.debug("acquire"); | 33 logger.debug("acquire"); |