debop / hibernate-redis

hibernate 2nd level cache privder using redis
Apache License 2.0
357 stars 184 forks source link

org.springframework.orm.jpa.JpaSystemException: Could not set field value [PUBLISH] value by reflection #129

Open skygreen2001 opened 5 years ago

skygreen2001 commented 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?