Examples of forTableValidation()


Examples of info.archinnov.achilles.internal.metadata.holder.PropertyMeta.forTableValidation()

    public void validateForEntity(EntityMeta entityMeta, TableMetadata tableMetadata, ConfigurationContext configContext) {
        log.debug("Validate existing table {} for {}", tableMetadata.getName(), entityMeta);

        // Primary key Validation
        PropertyMeta idMeta = entityMeta.getIdMeta();
        final PropertyMetaTableValidator primaryKeyValidator = idMeta.forTableValidation();
        if (entityMeta.structure().isEmbeddedId()) {
            primaryKeyValidator.validatePrimaryKeyComponents(tableMetadata, true);
            primaryKeyValidator.validatePrimaryKeyComponents(tableMetadata, false);
        } else {
            primaryKeyValidator.validateColumn(tableMetadata, entityMeta, configContext);
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.