private final JdbcMapper<AResource> mapper = JdbcMapperFactory.newInstance()
.useAsm(false)
.ignorePropertyNotFound()
.addKeys(root.ID.getName())
.addKeys(jListTargetFieldAliasFunction.apply(Tables.A_JLIST.SRC_ID), jListTargetFieldAliasFunction.apply(Tables.A_JLIST.SEQ_NR), jListTargetFieldAliasFunction.apply(Tables.A_JLIST.ITEM))
.ignoreColumns(jListTargetFieldAliasFunction.apply(Tables.A_JLIST.SRC_ID), jListTargetFieldAliasFunction.apply(Tables.A_JLIST.SEQ_NR))
.newMapper(AResource.class)
;
The functions just prefix the column names with the according fields' name to enable mapping (they're applied in the select as well).
Unfortunately, with this setup, I only get one foo and bar each for XX. If I remove ITEM as a key, I suddenly get null value instances in a completely different array, so that doesn't seem to be an option.
Any ideas? Thank you!