Uses of Class
org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Challenge
Packages that use Challenge
Package
Description
-
Uses of Challenge in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper that return ChallengeModifier and TypeMethodDescriptionChallengeMapper.toEntity(ChallengeCreateDTO challengeCreateDTO, User user) Converts from challenge DTO to entity.ChallengeMapper.updateEntity(Challenge challenge, ChallengeUpdateDTO challengeDTO) Updates a challenge entity using dto.Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper with parameters of type ChallengeModifier and TypeMethodDescriptionConverts from Challenge entity to DTO.ChallengeMapper.updateEntity(Challenge challenge, ChallengeUpdateDTO challengeDTO) Updates a challenge entity using dto.default voidChallengeMapper.updateType(Challenge challenge, ChallengeUpdateDTO challengeDTO) Sets the type of challenge to null if DTO type is null -
Uses of Challenge in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository that return types with arguments of type ChallengeModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<Challenge> ChallengeRepository.findAllByCompletedOnIsNotNullAndUser(User user, org.springframework.data.domain.Pageable pageable) Finds a page of completed saving challenges of a user (completion date is set, therefore not "null")ChallengeRepository.findAllByCompletedOnIsNullAndUser(User user) Finds a list of active saving challenges of a user (completion date is not set, therefore "null")org.springframework.data.domain.Page<Challenge> ChallengeRepository.findAllByCompletedOnIsNullAndUser(User user, org.springframework.data.domain.Pageable pageable) Finds a page of active saving challenges of a user (completion date is not set, therefore "null")ChallengeRepository.findByIdAndUser(Long id, User user) Gets an Optional object, wrapped around either a saving challenge of a user, if it exists, or nothing.org.springframework.data.domain.Page<Challenge> ChallengeRepository.findByUser(User user, org.springframework.data.domain.Pageable pageable) Gets a page of saving challenges of a user.