1 package eu
.etaxonomy
.cdm
.persistence
.dao
.common
;
3 import org
.hibernate
.Session
;
4 import org
.hibernate
.SessionFactory
;
5 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
6 import org
.springframework
.transaction
.annotation
.Transactional
;
8 public abstract class DaoBase
{
10 private SessionFactory factory
;
12 protected Session
getSession(){
13 return factory
.getCurrentSession();