Examples of transformTuple()


Examples of org.hibernate.transform.AliasToBeanResultTransformer.transformTuple()

    // (it *should* be initialized before creating a QueryKey)
    doResultTransformerTest( new AliasToBeanResultTransformer( AClass.class ), false );

    // initialize settings for the next test
    AliasToBeanResultTransformer transformer = new AliasToBeanResultTransformer( AClass.class );
    transformer.transformTuple(
        new Object[] { "abc", "def" },
        new String[] { "propAccessedByField", "propAccessedByMethod" }
    );
    doResultTransformerTest( transformer, false );

View Full Code Here

Examples of org.hibernate.transform.AliasToBeanResultTransformer.transformTuple()

    // (it *should* be initialized before creating a QueryKey)
    doTest( buildBasicKey( new AliasToBeanResultTransformer( AClass.class ) ) );

    // initialize settings for the next test
    AliasToBeanResultTransformer transformer = new AliasToBeanResultTransformer( AClass.class );
    transformer.transformTuple(
        new Object[] { "abc", "def" }
        new String[] { "propAccessedByField", "propAccessedByMethod" } );
    doTest( buildBasicKey( transformer ) );
  }

View Full Code Here

Examples of org.hibernate.transform.ResultTransformer.transformTuple()

        ResultTransformer transformer = Transformers.aliasToBean( StudentDTO.class );
        String[] aliases = new String[] { "studentName", "courseDescription" };
        for ( int i = 0 ; i < resultList.size(); i++ ) {
          resultList.set(
              i,
              transformer.transformTuple( ( Object[] ) resultList.get( i ), aliases )
          );         
        }

        assertEquals( 2, resultList.size() );
        StudentDTO dto = ( StudentDTO ) resultList.get( 0 );
View Full Code Here

Examples of org.hibernate.transform.ResultTransformer.transformTuple()

        ResultTransformer transformer = Transformers.aliasToBean( StudentDTO.class );
        String[] aliases = new String[] { "studentName", "courseDescription" };
        for ( int i = 0 ; i < resultList.size(); i++ ) {
          resultList.set(
              i,
              transformer.transformTuple( ( Object[] ) resultList.get( i ), aliases )
          );         
        }

        assertEquals( 2, resultList.size() );
        StudentDTO dto = ( StudentDTO ) resultList.get( 0 );
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.