Class TeamDao


  • @Repository
    public class TeamDao
    extends Object

    TeamDao class.

    Version:
    $Id: $Id
    Author:
    Michael Thomas (mikepthomas@outlook.com)
    • Constructor Detail

      • TeamDao

        public TeamDao()
    • Method Detail

      • setSessionFactory

        public void setSessionFactory​(org.hibernate.SessionFactory sessionFactory)

        Setter for the field sessionFactory.

        Parameters:
        sessionFactory - a SessionFactory object.
      • addTeam

        @Transactional
        public void addTeam​(Team team)

        addTeam.

        Parameters:
        team - a Team object.
      • listTeam

        @Transactional
        public List<Team> listTeam​(int firstResult,
                                   int maxResults)

        listTeam.

        Parameters:
        firstResult - a int.
        maxResults - a int.
        Returns:
        a List object.