class LocationRepositoryImpl implements LocationRepository {

    @Override
    public Location createLocation(Coordinates coordinates, String description) {
        LocationEntity locationEntity = repository.save(
                new LocationEntity(0, coordinates.latitude(), coordinates.longitude(), description));
        Location location = toDomain(locationEntity);
        logger.info("Created location {}.", location.fullDescription());
        return location;
    }

    @Autowired  LocationRepositoryImpl(LocationCrudRepository repository);

}