Examples of createAlias()


Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.createAlias()

        String eventGazMapping = new Gson().toJson(new AssociationFeaturePojoIndexMap.Mapping(), AssociationFeaturePojoIndexMap.Mapping.class)
        ElasticSearchManager eventIndex = IndexManager.createIndex(AssociationFeaturePojoIndexMap.indexName_, null, false, null, eventGazMapping, localSettingsEvent);
        if (null == eventIndex) { // (if has been previously referenced in this process space)
          eventIndex = IndexManager.getIndex(AssociationFeaturePojoIndexMap.indexName_);
        }
        eventIndex.createAlias(AssociationFeaturePojoIndexMap.indexCollectionName_);
        if (bDeleteEventFeature) {
          eventIndex.deleteMe();
          eventIndex = IndexManager.createIndex(AssociationFeaturePojoIndexMap.indexName_, null, false, null, eventGazMapping, localSettingsEvent);
        }
        //entity feature
View Full Code Here

Examples of com.sun.cli.jmx.support.CLISupportMBeanProxy.createAlias()

      TestMBeanGet( proxy, all );
     
      TestMBeanInspect( proxy, all );
     
      proxy.deleteAlias( CLI_TEST_ALIAS_NAME );
      proxy.createAlias( CLI_TEST_ALIAS_NAME, CLISupportStrings.CLI_SUPPORT_TESTEE_TARGET );
      final String []  testMBean  = new String [] { CLI_TEST_ALIAS_NAME };
     
      TestMBeanInvoke( proxy, testMBean );
     
      TestGeneric( proxy, testMBean);
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

      for (int i = 0; i < props.length - 1; i++) {
        String alias = props[i] + "_alias";
        if (!aliases.contains(alias)) {
          Criteria criteria = (Criteria) userData;
          if (i == 0) {
            criteria.createAlias(props[0], alias);
          } else {
            criteria.createAlias(prevAlias + "." + props[i], alias);
          }
          aliases.add(alias);
        }
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

        if (!aliases.contains(alias)) {
          Criteria criteria = (Criteria) userData;
          if (i == 0) {
            criteria.createAlias(props[0], alias);
          } else {
            criteria.createAlias(prevAlias + "." + props[i], alias);
          }
          aliases.add(alias);
        }
        prevAlias = alias;
      }
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

            if (orderBy != null) {
              crit.addOrder(Order.asc(orderBy));
            }
           
            crit.createAlias("supplierType", "supplierType");
            crit.add(Restrictions.ilike("supplierType.supplierTypeName", typeString));

            if (productAreaGroup != null&&!productAreaGroup.getProductAreaGroupName().equalsIgnoreCase("Alle")) {

              crit = crit
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

    }

    if (conjTemplates != null) {
      if (flagSteps) {
        critProcess.createCriteria("vorlagen", "vorl");
        critProcess.createAlias("vorl.eigenschaften", "vorleig");
        critProcess.add(conjTemplates);
      } else {
        crit.createCriteria("vorlagen", "vorl");
        crit.createAlias("vorl.eigenschaften", "vorleig");
        inCrit.add(conjTemplates);
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

      }
    }

    if (conjProcessProperties != null) {
      if (flagSteps) {
        critProcess.createAlias("proc.eigenschaften", "prozesseig");
        critProcess.add(conjProcessProperties);
      } else {

        inCrit.createAlias("eigenschaften", "prozesseig");
        inCrit.add(conjProcessProperties);
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

    if (conjStepProperties != null) {
      if (!flagSteps) {
        Criteria stepCrit = session.createCriteria(Prozess.class);
        stepCrit.createCriteria("schritte", "steps");
        stepCrit.createAlias("steps.eigenschaften", "schritteig");
        stepCrit.add(conjStepProperties);
        stepCrit.setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);
        List<Integer> myIds = new ArrayList<Integer>();

        for (@SuppressWarnings("unchecked")
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

        final int ndx = sortProperty.lastIndexOf('.');
        if (ndx != -1)
        {
            final String associationPath = sortProperty.substring(0, ndx);
            final String propertyName = sortProperty.substring(ndx + 1);
            c = c.createAlias(associationPath, ASSOCIATION_ALIAS)
                    .addOrder(ascending ? Order.asc(ASSOCIATION_ALIAS + "." + propertyName) : Order.desc(ASSOCIATION_ALIAS + "." + propertyName));
        }
        else
        {
            c = c.addOrder(ascending ? Order.asc(sortProperty) : Order.desc(sortProperty));
View Full Code Here

Examples of org.hibernate.Criteria.createAlias()

    Session s = openSession();
    s.getTransaction().begin();

    Criteria rootCriteria = s.createCriteria( Order.class );
    // create alias, ensuring we stay on the root criteria
    assertSame( rootCriteria, rootCriteria.createAlias( "orderLines", "ol", JoinFragment.LEFT_OUTER_JOIN ) );

    // add restrictions to rootCriteria
    assertSame( rootCriteria, rootCriteria.add( Restrictions.eq( "ol.articleId", "3000" ) ) );

    List orders = rootCriteria.list();
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.