Vasily, > By the way, even more helpful feature would be the ability to declare type > of query result, isolating type safety issues in a selected place.
A draft version is available from SVN trunk and Github. It turned out that this feature is also useful for jOOQ's internals when simulating INSERT .. RETURNING. The RETURNING clause is also supposed to return records of the type of the table that the data was inserted to. This is the change set: https://github.com/lukaseder/jOOQ/commit/13366f28957e4bfd7526f7419e86f22566e24ae1 And in particular: https://github.com/lukaseder/jOOQ/commit/13366f28957e4bfd7526f7419e86f22566e24ae1#L2R2821 This ticket will need to be implemented, too, to facilitate the interaction with jOOQ's custom types. Currently, there is too much internal API leaking to custom extensions: https://sourceforge.net/apps/trac/jooq/ticket/686 Any feedback is welcome. Cheers Lukas
