title: Hazelcast vs Ehcache + Hazelcast annotations for caching at service/dao layer with Spring and Hibernate?
body: <p>I want to evaluate Hazecast vs Ehcache distributed caches.</p>
  
  <p>First how to use them with Spring + Hibernate project which have standard dao/service layers.
  Ehcache has very elegant and easy to use annotations like :</p>
  
  <pre><code>@Cacheable(cacheName = "test", keyGenerator = @KeyGenerator (
              name = "SpELCacheKeyGenerator", properties = @Property(value = "#key.string(#args[0])", name = "expression")))
  </code></pre>
  
  <p>Is there anything like the above for Hazelcast? I didn't find any information how to use Hazelcast in that fashion for entities/dtos.</p>