I want to Remove begin and commit transactions from DAO class , and I need to use Transactional annotation. How it should be done? Now , exception is org.hibernate.HibernateE
After setting a correct transaction manager, just tried to move the @Transactional annotation to the method on the implemented class
@Repository
public class CoursesDAOImpl implements CoursesDAO {
@Autowired
private SessionFactory sessionFactory;
@Transactional
public Course createCourse(Course course) {