title: infrred type 'S' for type parameter 'S' is not within its bound ; should extend 'java.lang.Integer'
body: <p>i have tried this problems to solve more than couple of hours but i could not, 
    i basically trying to do crud operation but when i used save method for location  for service implementation its show the error"   inferred type 'S' for type parameter 'S' is not within its bound ; should extend 'java.lang.Integer' "  so what are the steps to get rid of this massage</p>
  
  <p>Repository Interface</p>
  
  <pre><code>package com.crudeoperation.demopro.Repo;
  
  import com.crudeoperation.demopro.Entities.Location;
  import org.springframework.data.jpa.repository.JpaRepository;
  import org.springframework.data.repository.CrudRepository;
  import org.springframework.stereotype.Repository;
  
  
  @Repository
  
  public interface LocationRepository extends CrudRepository&lt;Integer, Location&gt; {
  
  }
  </code></pre>
  
  <p>locationServices</p>
  
  <pre><code> package com.crudeoperation.demopro.Services;
  
      import com.crudeoperation.demopro.Entities.Location;
  
      import java.util.List;
      import java.util.Optional;
  
      public interface LocationServices {
          Location saveLocation(Location location );
          Location UpdateLocation(Location location);
          void deleteLocation(Location location);
          Optional&lt;Integer&gt; getLocationById(int id);
          List&lt;Location&gt; getAllLocation();
  
      }
  </code></pre>
  
  <p>LocationServicesImpl</p>
  
  <pre><code>package com.crudeoperation.demopro.Services;
  
  import com.crudeoperation.demopro.Entities.Location;
  import com.crudeoperation.demopro.Repo.LocationRepository;
  import org.springframework.beans.factory.annotation.Autowired;
  
  import java.util.List;
  import java.util.Optional;
  
  public class LocationServicesImpl implements LocationServices {
      @Autowired
      private LocationRepository locationRepository;
      @Override
      public Location saveLocation(Location location) {
          return locationRepository.save(location);
      }
  
      @Override
      public Location UpdateLocation(Location location) {
          return null;
      }
  
      @Override
      public void deleteLocation(Location location) {
  
      }
  
      @Override
      public Optional&lt;Integer&gt; getLocationById(int id) {
          return Optional.empty();
      }
  
      @Override
      public List&lt;Location&gt; getAllLocation() {
          return null;
      }
  }
  </code></pre>