Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skygreen2001 opened this issue Oct 5, 2018 · 0 comments

Comments

@skygreen2001
Copy link

hi
my hibernate.version is 5.2.8.Final
pom config:

    <dependency>
        <groupId>com.github.debop</groupId>
        <artifactId>hibernate-redis</artifactId>
        <version>2.4.0</version>
    </dependency>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant