>>> How is it different from this one? >>> >>> http://www.jooq.org/javadoc/latest/org/jooq/Record.html#from(java.lang.Object) >> >> It doesn't use reflection. Since I know all the fields and getters and >> setters, it's easy to generate a method that just calls all of them: [...] > > In essence, the code-generator could do this: > > - If records AND pojos are generated, it would generate into(POJO) and > from(POJO) methods > - If records AND interfaces are generated, it would generate > into(IFace) and from(IFace) methods > > The second rule would override the first. I'll file this as feature > request #1689 > https://github.com/jOOQ/jOOQ/issues/1689
#1689 is now implemented on Github master and will be included in jOOQ 3.0, possibly in 2.7 as well. It allows for typesafe loading of record data from/into POJOs, Records, as long as interfaces are generated
