Package org.springframework.data.mapping

Examples of org.springframework.data.mapping.SimplePropertyHandler


    final PersistentEntity<?, ?> persistentEntity = repositories.getPersistentEntity((Class<?>) source);
    final ResourceMetadata metadata = mappings.getMappingFor(persistentEntity.getType());
    final JsonSchema jsonSchema = new JsonSchema(persistentEntity.getName(),
        resolveMessage(metadata.getItemResourceDescription()));

    persistentEntity.doWithProperties(new SimplePropertyHandler() {

      /*
       * (non-Javadoc)
       * @see org.springframework.data.mapping.PropertyHandler#doWithPersistentProperty(org.springframework.data.mapping.PersistentProperty)
       */
 
View Full Code Here


    final List<Descriptor> propertyDescriptors = new ArrayList<Descriptor>();
    final JacksonMetadata jackson = new JacksonMetadata(mapper, type);
    final PropertyMappings propertyMappings = new PropertyMappings(mappings);
    final AssociationLinks associationLinks = new AssociationLinks(mappings);

    entity.doWithProperties(new SimplePropertyHandler() {

      @Override
      public void doWithPersistentProperty(PersistentProperty<?> property) {

        BeanPropertyDefinition propertyDefinition = jackson.getDefinitionFor(property);
View Full Code Here

    final BeanWrapper<Object> fromWrapper = BeanWrapper.create(from, conversionService);
    final BeanWrapper<Object> targetWrapper = BeanWrapper.create(target, conversionService);
    final PersistentEntity<?, ?> entity = repositories.getPersistentEntity(target.getClass());

    entity.doWithProperties(new SimplePropertyHandler() {

      /*
       * (non-Javadoc)
       * @see org.springframework.data.mapping.SimplePropertyHandler#doWithPersistentProperty(org.springframework.data.mapping.PersistentProperty)
       */
 
View Full Code Here

TOP

Related Classes of org.springframework.data.mapping.SimplePropertyHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.