Package net.sf.minuteProject.configuration.bean.enrichment

Examples of net.sf.minuteProject.configuration.bean.enrichment.Field


  private List<Field> getForeignKeyFieldsNotInSelfReferencedPrimaryKey(Table table) {
    List<Field> list = new ArrayList<Field>();
    for (Column column : table.getColumns()) {
      if (isConventionToApply(column)) { //
        Field f = getForeignKeyField(column, table);
        if (f != null) {
          list.add(f);
          // System.out.println("f = "+f);
        }
      }
View Full Code Here


//    Table target = TableUtils.getTable(table.getDatabase(), tablename);
//    if (target == null)
//      target = TableUtils.getTableFromAlias(table.getDatabase(), tablename);
    Table target = getTarget(column);
    if (target != null) {
      Field f = new Field();
      f.setName(column.getName());
      f.setLinkToTargetEntity(target.getName());
      f.setLinkToTargetField(TableUtils.getPrimaryKey(target));
      Entity entity = new Entity();
      entity.setName(table.getName());
      f.setEntity(entity);
      f.setBidirectional("true");
      return f;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.enrichment.Field

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.