Package org.openengsb.core.api.model.annotation

Examples of org.openengsb.core.api.model.annotation.OpenEngSBForeignKey


        throws IllegalAccessException {
        if (!new AdvancedModelWrapper(model).isEngineeringObject()) {
            return;
        }
        for (Field field : model.getClass().getDeclaredFields()) {
            OpenEngSBForeignKey annotation = field.getAnnotation(OpenEngSBForeignKey.class);
            if (annotation == null) {
                continue;
            }
            String value = (String) FieldUtils.readField(field, model, true);
            if (value == null) {
View Full Code Here


    /**
     * Generates the model description of a field which is annotated with the OpenEngSBForeignKey annotation.
     */
    private ModelDescription getModelDescriptionFromField(Field field) {
        OpenEngSBForeignKey key = field.getAnnotation(OpenEngSBForeignKey.class);
        ModelDescription description = new ModelDescription(key.modelType(), key.modelVersion());
        return description;
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.model.annotation.OpenEngSBForeignKey

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.