HHH-8374: Treat an entity wrapped by hibernate proxy equals a raw entity