01: package org.concern.controller;
02:
03: import org.hibernate.Session;
04: import org.hibernate.HibernateException;
05: import org.hibernate.SessionFactory;
06:
07: import javax.transaction.TransactionManager;
08:
09: public interface Sessions {
10: SessionFactory getSessionFactory();
11:
12: void setSessionFactory(SessionFactory sessionFactory);
13:
14: void setTransactionManager(TransactionManager transactionManager);
15:
16: Session getSession() throws HibernateException;
17: }
|