Caching cause leaking of entities data from one session factory to another

Description

Assuming that I've an Employee #5 in two session factories, and caching is enabled, it is possible that data that was loaded in one session factory will be returned from the second.
This is because the generated cache key is the same, and the cache space is shared in all implementations.

Should use the session factory name to distingiush between the caches, since that will allow using the cache in distributed scenarios yet maintain the seperation between seperate session factories.

Environment

None

Status

Assignee

OrenE

Reporter

OrenE

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure