Examples of ImportedIdSimple


Examples of com.avaje.ebeaninternal.server.deploy.id.ImportedIdSimple

    BeanProperty idProp = target.getIdProperty();
    BeanProperty[] others = target.propertiesBaseScalar();

    if (descriptor.isSqlSelectBased()){
      String dbColumn = owner.getDbColumn();
      return new ImportedIdSimple(owner, dbColumn, idProp, 0);
    }

    TableJoinColumn[] cols = join.columns();

    if (idProp == null) {
View Full Code Here

Examples of com.avaje.ebeaninternal.server.deploy.id.ImportedIdSimple

    String matchColumn = col.getForeignDbColumn();
    String localColumn = col.getLocalDbColumn();
   
    for (int j = 0; j < props.length; j++) {
      if (props[j].getDbColumn().equalsIgnoreCase(matchColumn)) {
        return new ImportedIdSimple(owner, localColumn, props[j], j);
      }
    }

    for (int j = 0; j < others.length; j++) {
            if (others[j].getDbColumn().equalsIgnoreCase(matchColumn)) {
                return new ImportedIdSimple(owner, localColumn, others[j], j+props.length);
            }
        }
   
    String msg = "Error with the Join on ["+getFullBeanName()
      +"]. Could not find the local match for ["+matchColumn+"] "//in table["+searchTable+"]?"
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.