Package com.force.sdk.jpa.entities

Examples of com.force.sdk.jpa.entities.QueryTestEntity


        // Assert the first part of the mapped result is a QueryTestEntity
        assertEquals(results.get(0)[0].getClass(), QueryTestEntity.class,
                "Unexpected @EntityResult type for @SqlResultSetMapping " + resultSetMapping + " "
                + "for native query " + nativeQuery);
       
        QueryTestEntity qteResult = (QueryTestEntity) results.get(0)[0];
        assertEquals(qteResult.getEntityType(), "AAA",
                "Unexpected @EntityResult result for @SqlResultMapping " + resultSetMapping + " "
                + "for native query " + nativeQuery);
       
        // Assert the second part of the mapped result is a String scalar
        assertEquals(results.get(0)[1].getClass(), String.class,
View Full Code Here


       
        // Assert the first part of the mapped result is a QueryTestEntity
        assertEquals(results.get(0)[0].getClass(), QueryTestEntity.class,
                "Unexpected @EntityResult type for named native query " + namedNativeQuery);
       
        QueryTestEntity qteResult = (QueryTestEntity) results.get(0)[0];
        assertEquals(qteResult.getEntityType(), "AAA",
                "Unexpected @EntityResult result for named native query " + namedNativeQuery);
       
        // Assert the second part of the mapped result is a String scalar
        assertEquals(results.get(0)[1].getClass(), String.class,
                "Unexpected @ColumnResult type for named native query " + namedNativeQuery);
View Full Code Here

TOP

Related Classes of com.force.sdk.jpa.entities.QueryTestEntity

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.