Package org.lightadmin.api.config.builder

Examples of org.lightadmin.api.config.builder.FieldSetConfigurationUnitBuilder


        return configurationUnit;
    }

    private FieldSetConfigurationUnit fieldSetUnitWithPersistentFields(final Class<?> domainType, DomainConfigurationUnitType configurationUnitType) {
        final FieldSetConfigurationUnitBuilder fieldSetConfigurationUnitBuilder = new GenericFieldSetConfigurationUnitBuilder(domainType, configurationUnitType);

        PersistentEntity persistentEntity = getPersistentEntity(domainType);

        persistentEntity.doWithProperties(new SimplePropertyHandler() {
            @Override
            public void doWithPersistentProperty(PersistentProperty<?> property) {
                addField(property, fieldSetConfigurationUnitBuilder);
            }
        });

        persistentEntity.doWithAssociations(new SimpleAssociationHandler() {
            @Override
            public void doWithAssociation(Association<? extends PersistentProperty<?>> association) {
                addField(association.getInverse(), fieldSetConfigurationUnitBuilder);
            }
        });

        return fieldSetConfigurationUnitBuilder.build();
    }
View Full Code Here

TOP

Related Classes of org.lightadmin.api.config.builder.FieldSetConfigurationUnitBuilder

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.