@@ -0,0 +1,730 @@
+package wissolsoft.porada.webapp.dao;%0A%0Aimport org.hibernate.Session;%0Aimport org.hibernate.SessionFactory;%0Aimport org.hibernate.Transaction;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Repository;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0Aimport wissolsoft.porada.webapp.model.Vote;%0A%0A@Repository%0Apublic class VotesDao %7B%0A%0A    @Autowired%0A    private SessionFactory sessionFactory;%0A%0A    @Transactional%0A    public void insertVote(final Vote vote) %7B%0A        final Session session = sessionFactory.getCurrentSession();%0A        final Transaction transaction = session.beginTransaction();%0A        session.save(vote);%0A        transaction.commit();%0A    %7D%0A%0A%0A%0A%7D%0A

Add basic DAO for votes