Hibernate doesn't hit 2nd level cache (L2) for specific entity using JBoss Cache
Issue
- We have one particular entity (SomeEntity), that is appearing in the entity cache (com.company.example.entities.SomeEntity), queries on this specific entity by its key (UUID, a string) don't ever seem to hit the cache, and instead go round-trip to the database. Since this entity is involved in request authorization, this is creating a significant obstacle to performance and scalability.
Environment
- JBoss Enterprise Application Platform (EAP)
- 5
- Hibernate
- 3.3.2.GA
- JBoss Cache
- 3.2.1.GA
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.
