@@ -0,0 +1,2314 @@
+/*******************************************************************************%0D%0A * Copyright (c) 1998, 2008 Oracle. All rights reserved.%0D%0A * This program and the accompanying materials are made available under the %0D%0A * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 %0D%0A * which accompanies this distribution. %0D%0A * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html%0D%0A * and the Eclipse Distribution License is available at %0D%0A * http://www.eclipse.org/org/documents/edl-v10.php.%0D%0A *%0D%0A * Contributors:%0D%0A *     May 26, 2009-1.0M6 Chris Delahunt %0D%0A *       - TODO Bug#: Bug Description %0D%0A ******************************************************************************/  %0D%0Apackage org.eclipse.persistence.testing.tests.queries.report;%0D%0A%0D%0Aimport java.math.BigDecimal;%0D%0Aimport java.util.Enumeration;%0D%0Aimport java.util.Vector;%0D%0A%0D%0Aimport org.eclipse.persistence.expressions.ExpressionBuilder;%0D%0Aimport org.eclipse.persistence.internal.helper.ConversionManager;%0D%0Aimport org.eclipse.persistence.internal.helper.Helper;%0D%0Aimport org.eclipse.persistence.queries.ReportQuery;%0D%0Aimport org.eclipse.persistence.queries.ReportQueryResult;%0D%0Aimport org.eclipse.persistence.testing.framework.TestErrorException;%0D%0Aimport org.eclipse.persistence.testing.models.employee.domain.*;%0D%0A%0D%0A/**%0D%0A * @author cdelahun%0D%0A *%0D%0A */%0D%0Apublic class ClassForInheritanceTestCase extends ReportQueryTestCase %7B%0D%0A%0D%0A    /* (non-Javadoc)%0D%0A     * @see org.eclipse.persistence.testing.tests.queries.report.ReportQueryTestCase#buildExpectedResults()%0D%0A     */%0D%0A    @Override%0D%0A    protected void buildExpectedResults() throws Exception %7B%0D%0A%0D%0A        Vector projects = getSession().readAllObjects(Project.class);%0D%0A        Class projClass = null;%0D%0A        Project proj = null;%0D%0A        for (Enumeration e = projects.elements(); e.hasMoreElements(); ) %7B%0D%0A            proj = (Project)e.nextElement();%0D%0A            addResult(new Object%5B%5D %7Bproj.getClass(), proj%7D, null );%0D%0A        %7D%0D%0A    %7D%0D%0A%0D%0A    protected void setup() throws Exception %7B%0D%0A        super.setup();%0D%0A        ExpressionBuilder builder = new ExpressionBuilder();%0D%0A        reportQuery = new ReportQuery(Project.class, builder);%0D%0A%0D%0A        reportQuery.addItem(%22Type%22, builder.type());%0D%0A        reportQuery.addItem(%22project%22, builder);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

patch for feature 277509 - "Need native expressions to support JPQL Entity Type filtering" Changes: Expression now use a 'type()' to access an indicator field on classes that use inheritance, converting class objects to/from field values Reviewed by Tom Ware --Missed new test classes in the last checkin