Ignore:
Timestamp:
11/02/21 22:14:57 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
6c1585f
Parents:
188ee53
Message:

create initial planner and routing with angular

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/PlannerServiceImpl.java

    r188ee53 r6a80231  
    5151    @Override
    5252    public Optional<Planner> newPlanner(PlannerDto plannerDto) {
     53        /*
    5354        List<Location> locationList  = new ArrayList<>();
    5455        for(Long location : plannerDto.getLocationList()){
     
    5758            locationList.add(loc);
    5859        }
    59         return Optional.of(this.plannerRepository.save(new Planner(plannerDto.getName(), plannerDto.getDescription(),  locationList)));
     60
     61         */
     62           return Optional.of(this.plannerRepository.save(new Planner(plannerDto.getName(), plannerDto.getDescription(), null)));
    6063    }
    6164
Note: See TracChangeset for help on using the changeset viewer.