I am using Hazelcast as 2L cache provider for hibernate. My problem is that im trying to use Portable serialization, but by default when Application works it uses CacheKeyImpl class from hazelcast.hibernate.region package for Key serialization. How to disable that way of serialization?
CacheKeyImpl contains private String entityOrRoleName; field, it stores full path to the Entity, and that is why I cant set Hazelcast cache to work properly for two different Applications (because in different projects that deals with the DB, the path to the Entity is different, so thats why Keys of the same entity has different values after serialization). Do someone face the similar problem? Thanks in advance.