Uses of Class
org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Goal
Packages that use Goal
Package
Description
-
Uses of Goal in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper that return GoalModifier and TypeMethodDescriptionGoalMapper.toEntity
(GoalCreateDTO goalDTO, User user) Maps DTO to Goal entityGoalMapper.updateEntity
(Goal goal, GoalUpdateDTO goalDTO) Updates Goal entity based on DTOMethods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper with parameters of type GoalModifier and TypeMethodDescriptionMaps Goal entity to DTOGoalMapper.updateEntity
(Goal goal, GoalUpdateDTO goalDTO) Updates Goal entity based on DTO -
Uses of Goal in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model with parameters of type Goal -
Uses of Goal in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository that return types with arguments of type GoalModifier and TypeMethodDescriptionorg.springframework.data.domain.Page
<Goal> GoalRepository.findAllByCompletedOnIsNotNullAndUser
(User user, org.springframework.data.domain.Pageable pageable) Finds a page of saving goals of a user that are complete/inactive (completedOn is not null)GoalRepository.findAllByCompletedOnIsNullAndUser
(User user) Finds all saving goals of a user that are active (completedOn is null)GoalRepository.findAllByCompletedOnIsNullAndUserOrderByPriorityAsc
(User user) Finds all saving goals of a user that are active (completedOn is null), sorted by priority, from lowest value (high priority) to highest (low priority)org.springframework.data.domain.Page
<Goal> GoalRepository.findAllByUser
(User user, org.springframework.data.domain.Pageable pageable) Finds a page of all saving goal entities of a userGoalRepository.findByIdAndUser
(Long id, User user) Finds the goal of a user specified by its id, wrapped by an Optional object.