• Post Reply Bookmark Topic Watch Topic
  • New Topic

'read-only cache configured for mutable entity' warn displays when application start up.

Chris Li Lee
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Spring3.2 and JPA with Hibernate4.2.1 Final

One of my entity code is like:

We want to cache this kind of entities because theirs value will never be changed. The values will be inserted to tables before application start up. These tables look like Dictionary Values Table.

My ehcache.xml is like following:

But every time I start up my application, the following warn shows up, is there any issue with my configuration? How to set these entities to immutable?

Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!