Questions tagged [hibernate-cache]
73 questions
1
vote
0 answers
hibernate second level cache can get lazy-loading entity when i set breakpoint
I use Spring data JPA and hibernate second level cache via hibernate-redis in my project. I use @Transactional for lazy-loading, But it hints miss when I run application. if i debug it, and set a breakpoint wait for some time, it works and retrieve…

Joemsu
- 11
- 1
1
vote
1 answer
Hazelcast 3.7.1 -Hibernate 4.X Second Level Cache - org/hibernate/cache/QueryResultsRegion class not found
We are trying to implement Hibernate 2nd Level Cache through Hazelcast. We tried for Hibernate Versions 4.3.11 using the Hazelcast Plugin Version as provided in the githib link https://github.com/hazelcast/hazelcast-hibernate/blob/master/README.md.…

Aravind
- 311
- 3
- 14
1
vote
1 answer
1
vote
0 answers
Does Hibernate 2nd level cache use just the WHERE clause or the entire query to construct the cache?
Scenario:
I have a product table with a primary key of product ID. I have set up hibernate with a secondary cache (ehcache) with a read-only strategy and query caching has been enabled.
I have a request to start using Oracle's flashback…

Khush
- 853
- 2
- 8
- 21
1
vote
1 answer
Hiberanate disable cached results
My Application has a service will polls internally for job output. It polls till the job status changes from "In-progress" to "Completed". Another system is going to update the job status to "Completed" once it processes the job.
The problem here…

chandu
- 403
- 1
- 6
- 15
1
vote
2 answers
Adding hibernate-ehcache.jar and ehcache-core.jar to WildFly as a module
Configuring a cache provider in persistence.xml along with some other related properties as follows.
ALL
…

Tiny
- 27,221
- 105
- 339
- 599
1
vote
3 answers
Hibernate caching
In hibernate already First level Cache is available for caching then why we have to use Second level cache? Instead of second level why we can not use only First level cache in hibernate for caching?

user3898783
- 207
- 1
- 4
- 16
1
vote
2 answers
Hibernate caches the query while data is being changed
I'm developing an application which connects to an outside service to fetch new SMS. Theses messages are stored in a local database by Hibernate. My client can search these messages based on numerous parameters such as time, number, and etc.
After…

mdoust
- 429
- 1
- 4
- 20
1
vote
1 answer
ehcache WAN solutions - should I roll my own?
We recently moved to ehcache and the performance and reliability are awesome. Our main use of the cache is the invalidation strategy where when something changes with a hibernate entity, it sends out an invalidation to all other nodes in the…

anztenney
- 627
- 2
- 7
- 17
1
vote
1 answer
Hibernate Second Level Cache & JUnit
I'm trying to use SecondLevelCache with hibernate. This is my xml configuration file:

Luigi Saggese
- 5,299
- 3
- 43
- 94
1
vote
1 answer
does hibernate sql query shown in the cache entities as well
I am printing the sql query in the log by the setting the log level as debug for the hibernate.sql package. there are few queries which are being shown in the logs are from the entity which is using the caching…

nish
- 11
- 2
0
votes
0 answers
hibernate v6, caching | XmlConfigurationException: Error parsing XML configuration
I have a working hibernate v6 project and want to add caching, but I can't get it working.
I get this error (reduced)
Exception in thread "main" java.lang.IllegalStateException: Cache provider not started
Caused by: javax.cache.CacheException:…

Carry out
- 1
- 1
- 2
- 2
0
votes
0 answers
How to configure Distributed Hibernate Cache Ehcache on Kubernetes
I use ehcache for Hibernate cache for my services running on multiple pods. How can I configure?
org.hibernate
hibernate-ehcache
5.6.11.Final

zoroglur
- 395
- 2
- 18
0
votes
2 answers
Unable to create requested service [org.hibernate.cache.spi.CacheImplementor] Hibernate Cache in Spring Boot
I am trying to hibernate cache in Spring dao layer. I get an error when I add the ehcache…

zoroglur
- 395
- 2
- 18
0
votes
0 answers
Hibernate Query Cache: ManyToOne, javax.persistence.EntityNotFoundException: Unable to find *DMO with id
Let's say I have two tables Posts and Authors. The relationship between them is defined as ManyToOne with EAGER fetch type.
There is findByNameAndAuthorName query method to get specific Post entity. The method is annotated with @QueryHints({…

Hutsul
- 1,535
- 4
- 31
- 51