Package de.zalando.typemapper.namedresult.results

Examples of de.zalando.typemapper.namedresult.results.ClassWithColumnDefinition


        final PreparedStatement ps = connection.prepareStatement("SELECT 2 as l, 'c' as c");
        final ResultSet rs = ps.executeQuery();
        final TypeMapper<?> mapper = TypeMapperFactory.createTypeMapper(ClassWithColumnDefinition.class);
        int i = 0;
        while (rs.next()) {
            final ClassWithColumnDefinition result = (ClassWithColumnDefinition) mapper.mapRow(rs, i++);
            Assert.assertNotNull(result);
            Assert.assertEquals(2, result.getL());
            Assert.assertEquals('c', result.getC());
        }
    }
View Full Code Here

TOP

Related Classes of de.zalando.typemapper.namedresult.results.ClassWithColumnDefinition

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.