Package info.archinnov.achilles.exception

Examples of info.archinnov.achilles.exception.AchillesBeanMappingException


            Type[] actualTypeArguments = pt.getActualTypeArguments();
            if (actualTypeArguments.length > 0) {
                Type type = actualTypeArguments[actualTypeArguments.length - 1];
                valueClass = getClassFromType(type);
            } else {
                throw new AchillesBeanMappingException("The type '" + genericType.getClass().getCanonicalName()
                        + "' of the entity '" + entityClass.getCanonicalName() + "' should be parameterized");
            }
        } else {
            throw new AchillesBeanMappingException("The type '" + genericType.getClass().getCanonicalName()
                    + "' of the entity '" + entityClass.getCanonicalName() + "' should be parameterized");
        }

        log.trace("Inferred value class : {}", valueClass.getCanonicalName());
View Full Code Here


    }

    private void validateNotStaticColumn(Field compositeKeyField) {
        Column column = compositeKeyField.getAnnotation(Column.class);
        if (column != null && column.staticColumn()) {
            throw new AchillesBeanMappingException(String.format("The property '%s' of class '%s' cannot be a static column because it belongs to the primary key",compositeKeyField.getName(),compositeKeyField.getDeclaringClass().getCanonicalName()));
        }
    }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.exception.AchillesBeanMappingException

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.