Making ehcache read-write for test code and read-only for production code
- by Rick
I would like to annotate many of my Hibernate entities that contain reference data and/or configuration data with
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
However, my JUnit tests are setting up and tearing down some of this reference/configuration data using the Hibernate entities.
Is there a recommended way of having entities be…