Examples of PersistentProperty


Examples of org.springframework.data.mapping.PersistentProperty

        public javax.persistence.criteria.Predicate build(final Map<String, String[]> parameters) {
            final List<Predicate> attributesPredicates = newLinkedList();

            for (String parameterName : parameters.keySet()) {
                if (persistentEntity.getPersistentProperty(parameterName) != null) {
                    PersistentProperty persistentProperty = persistentEntity.getPersistentProperty(parameterName);

                    final String attributeName = persistentProperty.getName();

                    final String[] parameterValues = parameters.get(attributeName);

                    attributesPredicates.add(attributePredicate(persistentProperty, attributeName, parameterValues));
                }
View Full Code Here

Examples of org.springframework.data.mapping.PersistentProperty

        // TODO: Implement configurable ordering
        List allElements = domainTypeConfiguration.getRepository().findAll();
        allElements = sortByNaturalOrder(allElements, domainTypeConfiguration);

        PersistentProperty idAttribute = domainTypeConfiguration.getPersistentEntity().getIdProperty();
        EntityNameExtractor<Object> nameExtractor = domainTypeConfiguration.getEntityConfiguration().getNameExtractor();
        JspContext jspContext = getJspContext();
        JspFragment tagBody = getJspBody();
        for (Object element : allElements) {
            BeanWrapper beanWrapper = new DirectFieldAccessFallbackBeanWrapper(element);

            jspContext.setAttribute(idVar, beanWrapper.getPropertyValue(idAttribute.getName()));
            jspContext.setAttribute(stringRepresentationVar, exceptionAwareNameExtractor(nameExtractor, domainTypeConfiguration).apply(element));
            tagBody.invoke(null);
        }
    }
View Full Code Here

Examples of org.springframework.data.mapping.PersistentProperty

    public Map<String, JsonConfigurationMetadata.Property> getContent() {
        return super.getContent();
    }

    public JsonConfigurationMetadata addAssociationProperty(Association association, Link restTemplateLink) {
        PersistentProperty persistentProperty = association.getInverse();

        addProperty(persistentProperty.getName(), newAssociationProperty(persistentProperty, persistentProperty.getName(), restTemplateLink));

        return this;
    }
View Full Code Here

Examples of org.springframework.data.mapping.PersistentProperty

        return this;
    }

    public JsonConfigurationMetadata addAssociationProperty(Association association, Link restTemplateLink, DomainConfigurationUnitType unitType) {
        PersistentProperty persistentProperty = association.getInverse();
        String persistentPropertyName = persistentProperty.getName();

        addDynamicProperty(persistentPropertyName, newAssociationProperty(persistentProperty, persistentPropertyName, restTemplateLink), unitType);

        return this;
    }
View Full Code Here

Examples of org.springframework.data.mapping.PersistentProperty

        return this;
    }

    public JsonConfigurationMetadata addAssociationProperty(PersistentFieldMetadata persistentFieldMetadata, Link restTemplateLink, DomainConfigurationUnitType unitType) {
        PersistentProperty persistentProperty = persistentFieldMetadata.getPersistentProperty().getAssociation().getInverse();
        String persistentPropertyName = persistentProperty.getName();
        String persistentPropertyTitle = persistentFieldMetadata.getName();

        addDynamicProperty(persistentPropertyName, newAssociationProperty(persistentProperty, persistentPropertyTitle, restTemplateLink), unitType);

        return this;
View Full Code Here

Examples of org.springframework.data.mapping.PersistentProperty

        return this;
    }

    public JsonConfigurationMetadata addPersistentProperty(PersistentFieldMetadata persistentField, DomainConfigurationUnitType unitType) {
        PersistentProperty persistentProperty = persistentField.getPersistentProperty();
        String persistentPropertyName = persistentProperty.getName();
        String persistentPropertyTitle = persistentField.getName();

        addDynamicProperty(persistentPropertyName, newProperty(persistentProperty, persistentPropertyTitle), unitType);

        return this;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.