All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.grails.scaffolding.model.property.DomainPropertyFactory.groovy Maven / Gradle / Ivy

The newest version!
package org.grails.scaffolding.model.property

import org.grails.datastore.mapping.model.PersistentProperty

/**
 * A factory to create instances of {@link DomainProperty}
 *
 * @author James Kleeh
 */
interface DomainPropertyFactory {

    /**
     * @param persistentProperty The persistent property
     * @return The {@link DomainProperty} representing the {@link PersistentProperty}
     */
    DomainProperty build(PersistentProperty persistentProperty)

    /**
     * @param rootProperty The root property. Typically an instance of {@link org.grails.datastore.mapping.model.types.Embedded}
     * @param persistentProperty The persistent property
     * @return The {@link DomainProperty} representing the {@link PersistentProperty}
     */
    DomainProperty build(PersistentProperty rootProperty, PersistentProperty persistentProperty)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy