Class UserDao


  • @Repository
    public class UserDao
    extends Object

    UserDao class.

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

      • UserDao

        public UserDao()
    • Method Detail

      • setSessionFactory

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

        Setter for the field sessionFactory.

        Parameters:
        sessionFactory - a SessionFactory object.
      • addUser

        @Transactional
        public void addUser​(User user)

        addUser.

        Parameters:
        user - a User object.
      • listUser

        @Transactional
        public List<User> listUser​(int firstResult,
                                   int maxResults)

        listUser.

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

        @Transactional
        public List<User> listUserForTeam​(int team,
                                          int firstResult,
                                          int maxResults)

        listUserForTeam.

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