Package com.save4j.model

Examples of com.save4j.model.MappingInfo


    return map;
  }

  private static MappingInfo processObjectField(Field field) throws InstantiationException, IllegalAccessException {
    MappingInfo mapping = new MappingInfo();

    mapping.setName(convertCaseChangeToUnderscore(field.getName()));

    if (isFieldPrimitive(field.getType())) {
      mapping.setType(getFieldType(field));
    }
    else if (isFieldOneToMany(field.getType())) {
      mapping.setOneToMany(true);
    }
    // One to one object
    else {
      mapping.setOneToOne(true);
    }

    return mapping;
  }
View Full Code Here

TOP

Related Classes of com.save4j.model.MappingInfo

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.