Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {
/** * Creates a new {@link MappedProperties} instance for the given {@link PersistentEntity} and {@link BeanDescription}. * * @param entity must not be {@literal null}. * @param description must not be {@literal null}. */ private MappedProperties(PersistentEntity<?, ? extends PersistentProperty<?>> entity, BeanDescription description) { Assert.notNull(entity, "Entity must not be null!"); Assert.notNull(description, "BeanDescription must not be null!"); this.propertyToFieldName = new HashMap<PersistentProperty<?>, BeanPropertyDefinition>(); this.fieldNameToProperty = new HashMap<String, PersistentProperty<?>>(); this.unmappedProperties = new HashSet<BeanPropertyDefinition>(); for (BeanPropertyDefinition property : description.findProperties()) { if (description.getIgnoredPropertyNames().contains(property.getName())) { continue; } Optional<? extends PersistentProperty<?>> persistentProperty = // Optional.ofNullable(entity.getPersistentProperty(property.getInternalName())); persistentProperty.ifPresent(it -> { propertyToFieldName.put(it, property); fieldNameToProperty.put(property.getName(), it); }); if (!persistentProperty.isPresent()) { unmappedProperties.add(property); } } }
/** * Creates a new {@link MappedProperties} instance for the given {@link PersistentEntity} and {@link BeanDescription}. * * @param entity must not be {@literal null}. * @param description must not be {@literal null}. */ private MappedProperties(PersistentEntity<?, ? extends PersistentProperty<?>> entity, BeanDescription description) { Assert.notNull(entity, "Entity must not be null!"); Assert.notNull(description, "BeanDescription must not be null!"); this.propertyToFieldName = new HashMap<PersistentProperty<?>, BeanPropertyDefinition>(); this.fieldNameToProperty = new HashMap<String, PersistentProperty<?>>(); this.unmappedProperties = new HashSet<BeanPropertyDefinition>(); for (BeanPropertyDefinition property : description.findProperties()) { if (description.getIgnoredPropertyNames().contains(property.getName())) { continue; } Optional<? extends PersistentProperty<?>> persistentProperty = // Optional.ofNullable(entity.getPersistentProperty(property.getInternalName())); persistentProperty.ifPresent(it -> { propertyToFieldName.put(it, property); fieldNameToProperty.put(property.getName(), it); }); if (!persistentProperty.isPresent()) { unmappedProperties.add(property); } } }
Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {
Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {
Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {
Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {
Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {
Collection<String> ignored2 = beanDesc.getIgnoredPropertyNames(); if (ignored2 != null) { for (String propName : ignored2) {