Package com.avaje.ebeaninternal.server.deploy.meta

Examples of com.avaje.ebeaninternal.server.deploy.meta.DeployTableJoinColumn


            logger.debug(msg);
            fk = lc;
          }
        }
       
        DeployTableJoinColumn joinCol = new DeployTableJoinColumn(lc, fk);
        if (reverse){
          joinCol = joinCol.reverse();
        }
        join.addJoinColumn(joinCol);
    }
   
  }
View Full Code Here


        // define foreign key columns
      BeanProperty[] localIds = localTable.getIdProperties();
      for (int i = 0; i < localIds.length; i++) {
        // add the source to intersection join columns
        String fkCol = localTableName+"_"+localIds[i].getDbColumn();
        intJoin.addJoinColumn(new DeployTableJoinColumn(localIds[i].getDbColumn(), fkCol));
      }
      }

    if (!destJoin.hasJoinColumns()){
        // define inverse foreign key columns
      BeanProperty[] otherIds = otherTable.getIdProperties();
      for (int i = 0; i < otherIds.length; i++) {
        // set the intersection to dest table join columns
        final String fkCol = otherTableName+"_"+otherIds[i].getDbColumn();
        destJoin.addJoinColumn(new DeployTableJoinColumn(fkCol, otherIds[i].getDbColumn()));
      }
    }

    // reverse join from dest back to intersection
    DeployTableJoin inverseDest = destJoin.createInverse(intTableName);
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.deploy.meta.DeployTableJoinColumn

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.