mysema/querydsl — pull request #709 by ssaarela (2014-04-10 11:39:35+00:00)
Title: Field-based Tuple-to-Object-to-StoreClause mapping

This MappingProjection does reflection based mapping from a Tuple to a configurable Object type and from that type to StoreClause using (public) fields that match Path names (and types). Instantiation can be customized by overriding isNull and create methods to support e.g. other than default constructors. Additional bindings can be done by overriding afterPropertiesSet. It's quite handy.

An easy improvement would be support for private fields. Another nice addition would be support for polymorphism. That would require configuring all supported classes so that path-to-field mapping can be inspected.