/* * (non-Javadoc) * @see org.springframework.data.convert.TypeInformationMapper#createAliasFor(org.springframework.data.util.TypeInformation) */ public Object createAliasFor(TypeInformation<?> type) { CacheValue<Object> key = typeMap.get(type); if (key != null) { return key.getValue(); } PersistentEntity<?, ?> entity = mappingContext.getPersistentEntity(type); if (entity == null) { return null; } Object alias = entity.getTypeAlias(); safelyAddToCache(type.getRawTypeInformation(), alias); return alias; }