debop / hibernate-redis

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

Java Config #111

Open psalkowski opened 6 years ago

psalkowski commented 6 years ago

Hello, is there a way to create config via Java file instead of Yaml or JSON? I'm using Spring and need to wait until DI completes.

I want to use Spring's ObjectMapper with my custom serializers.

ti3r commented 5 years ago

Hi @namerci, check PR https://github.com/debop/hibernate-redis/pull/104/commits. That code allows configuration via Java Config classes. What we did in our project was declaring a managed bean in our configuration and setting the result as a system property when configuration was ready so the library could find it. Hope it helps.