Class TeamRepository

    • Constructor Detail

      • TeamRepository

        public TeamRepository()
    • Method Detail

      • findByName

        public Team findByName​(String name)
      • save

        public Team save​(Team entity)
        Description copied from interface: Repository
        Save the given entity.

        Depending on the implementation, it may return same entity or a copy of it. For example JPA implementation may return a copy if the given entity can't be managed.

        Specified by:
        save in interface Repository<Team>
        Overrides:
        save in class JpaRepository<Team>
        Parameters:
        entity - the entity object to save
        Returns:
        an instance of the entity with saved state