Open skygreen2001 opened 5 years ago
hi my hibernate.version is 5.2.8.Final pom config:
com.github.debop hibernate-redis 2.4.0
<dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>de.ruedigermoeller</groupId> <artifactId>fst</artifactId> <version>2.48</version> </dependency>
and application.property config: hibernate.cache.region.factory_class: org.hibernate.cache.redis.hibernate52.SingletonRedisRegionFactory hibernate.cache.region.region_prefix: hibernate hibernate.cache.use_structured_entries: true hibernate.cache.provider_configuration_file_resource_path: null redisson-config: classpath:redisson.yaml redis.expiryInSeconds.hibernate.common: 0 redis.expiryInSeconds.hibernate.account: 1200 redis.expiryInSeconds.default: 120 hibernate.generate_statistics: true
It's all good but run cache with exception: org.springframework.orm.jpa.JpaSystemException: Could not set field value [PUBLISH] value by reflection
It's enum type,How to resolve it?
hi my hibernate.version is 5.2.8.Final pom config:
and application.property config: hibernate.cache.region.factory_class: org.hibernate.cache.redis.hibernate52.SingletonRedisRegionFactory hibernate.cache.region.region_prefix: hibernate hibernate.cache.use_structured_entries: true hibernate.cache.provider_configuration_file_resource_path: null redisson-config: classpath:redisson.yaml redis.expiryInSeconds.hibernate.common: 0 redis.expiryInSeconds.hibernate.account: 1200 redis.expiryInSeconds.default: 120 hibernate.generate_statistics: true
It's all good but run cache with exception: org.springframework.orm.jpa.JpaSystemException: Could not set field value [PUBLISH] value by reflection
It's enum type,How to resolve it?