In Hibernate what all is required to make an entity read-only?
Issue
-
I want to set an ORM to read-only. I'm using the two annotations below on each persistent class. Is this sufficient and is there anything else that must be set?
@org.hibernate.annotations.Entity(mutable=false) @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
Environment
- JBoss Hibernate 3.2.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
