ClassMetadataFactory fix: add entity alias to the metadata map