Class UserRepository

All Implemented Interfaces:
Repository<User>

public class UserRepository extends AbstractUserRepository
  • Constructor Details

    • UserRepository

      public UserRepository()
  • Method Details

    • save

      public User save(User 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<User>
      Overrides:
      save in class JpaRepository<User>
      Parameters:
      entity - the entity object to save
      Returns:
      an instance of the entity with saved state