Examples of addRoot()


Examples of org.hibernate.SQLQuery.addRoot()

    SQLQuery sqlQuery = s.createSQLQuery( sql );
    sqlQuery.setResultSetMapping( "org-description" );
    sqlQuery.list();

    // next try a partial mapping def
    sqlQuery.addRoot( "org", Organization.class );
    sqlQuery.addFetch( "emp", "org", "employments" );
    sqlQuery.list();

    // now try full explicit mappings
    sqlQuery.addRoot( "org", Organization.class )
View Full Code Here

Examples of org.hibernate.SQLQuery.addRoot()

    sqlQuery.addRoot( "org", Organization.class );
    sqlQuery.addFetch( "emp", "org", "employments" );
    sqlQuery.list();

    // now try full explicit mappings
    sqlQuery.addRoot( "org", Organization.class )
        .addProperty( "id", "orgid" )
        .addProperty( "name" ).addColumnAlias( "name" );
    sqlQuery.addFetch( "emp", "org", "employments" )
        .addProperty( "key", "employer" )
        .addProperty( "element", "empid" )
View Full Code Here

Examples of org.hibernate.SQLQuery.addRoot()

    Session s = openSession();
    s.beginTransaction();
    s.createSQLQuery( sql ).addEntity( "t", AllTables.class ).list();
    s.createSQLQuery( sql2 ).setResultSetMapping( "all" ).list();
    SQLQuery q = s.createSQLQuery( sql2 );
    q.addRoot( "t", AllTables.class ).addProperty( "tableName", "t_name" ).addProperty( "daysOld", "t_time" );
    q.list();
    s.getTransaction().commit();
    s.close();
  }
  @FailureExpected( jiraKey = "HHH-2225")
View Full Code Here

Examples of org.sindice.siren.search.node.TwigQuery.addRoot()

    // process root query
    if (twigNode.hasRoot()) {
      final String rootExpr = twigNode.getRoot().toString();
      final String field = twigNode.getField().toString();
      query.addRoot((NodeQuery) keywordParser.parse(rootExpr, field));
    }

    // process child and descendant queries
    try {
      processChildren(children, query);
View Full Code Here

Examples of org.sindice.siren.search.node.TwigQuery.addRoot()

      twigQuery = new TwigQuery(rootLevel);
    } else {
      final Object attQuery = root.getTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);
      if (attQuery != null) {
        twigQuery = new TwigQuery(rootLevel);
        twigQuery.addRoot((NodeQuery) attQuery);
      } else {
        throw new QueryNodeException(new MessageImpl(QueryParserMessages.INVALID_SYNTAX,
        "Unable to get the root of the Twig query"));
      }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.dao.ResourceDAO.addRoot()

                    if (log.isTraceEnabled()) {
                        log.trace("Creating the root collection of the Registry.");
                    }
                    CollectionImpl root = new CollectionImpl();
                    resourceDAO.addRoot(root);
                    if (userRealm != null) {
                        AuthorizationUtils
                                .setRootAuthorizations(RegistryConstants.ROOT_PATH, userRealm);
                    }
                }
View Full Code Here

Examples of prefuse.data.Tree.addRoot()

     */
    public static Tree getBalancedTree(int breadth, int depth) {
        Tree t = new Tree();
        t.getNodeTable().addColumns(LABEL_SCHEMA);
       
        Node r = t.addRoot();
        r.setString(LABEL, "0,0");
       
        if ( depth > 0 )
            balancedHelper(t, r, breadth, depth-1);
        return t;
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.