Examples of addPathClass()


Examples of org.apache.ojb.broker.query.QueryByCriteria.addPathClass()

        criteria.addLike("headline","Bra%");
        criteria.addNotNull("qualifiers.name");
        QueryByCriteria query = new QueryByCriteria(BaseContentImpl.class, criteria, true);
        query.addPathClass("qualifiers",Qualifier.class);
        query.addPathClass("qualifiers",Topic.class);
        query.addPathClass("qualifiers",Category.class);
       
        List content = (List) broker.getCollectionByQuery(query);
        assertEquals(1,content.size());
        assertEquals(3,((News)content.get(0)).getId());
    }
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.