@Cache annotation usage error
问题 I added the following annotation to enable cache to one of my EJB3 entities, to test caching with ehCache, where I use Hibernate as the persistence provider: .... import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; @Entity @Table(name = "F") @Cache(usage=CacheConcurrencyStrategy.READ_WRITE) @NamedQueries({ @NamedQuery(name = "F.findAll", query = "SELECT f FROM F f")}) public class F implements Serializable { ..... } I added the following to