[BUGFIX] Reuse entities of overridden classes in persistence session