title: Spring Cache property extraction
body: <p>I have two methods for which i have use @Cacheable annotation. </p>
  
  <pre><code>@Cacheable(value = "product", key = "#id")
  public Product getProduct(String id) {
      Product product = productRepository.getProductById(id)
      return product;
  }
  </code></pre>
  
  <p>and the second method is,</p>
  
  <pre><code>@Cacheable(value = "product", key="#id")
  public Integer getProductType(String id) {
       return getProduct(id).getProductType();
  } 
  </code></pre>
  
  <p>The second method does not work. How can i extract only a property from the "product" cache? In this case, already product for that specific id is cached. i just need only the property from the cache. I am using Hazelcast as Cache provider.</p>