Define an attribute as the comma-separated
String from the elements of the
values argument.
Examples:
List<String> columnNames = Arrays.asList("id", "name", "created_on");
List<Object> values = Arrays.asList(1, "Alice", LocalDate.now());
handle.createUpdate("insert into things (<columnNames>) values (<values>)")
.defineList("columnNames", columnNames)
.bindList("values", 1, values)
.execute();
List<String> columnNames = Arrays.asList("id", "name", "created_on");
List<Thing> things = handle.createQuery("select <columnNames> from things")
.bindList("columnNames", columnNames)
.mapTo(Contact.class)
.list();