Hello,
>From the API documentation of Record.into(Type):
http://www.jooq.org/javadoc/3.4.x/org/jooq/Record.html#into-E-

If a default constructor is available and any JPA Column annotations are 
found on the provided type, only those are used:
   
   - If type contains public single-argument instance methods annotated 
   with Column, those methods are invoked
   - If type contains public no-argument instance methods starting with 
   getXXX or isXXX, annotated with Column, then matching public setXXX() 
instance 
   methods are invoked
   - If type contains public instance member fields annotated with Column, 
   those members are set


>From there, is it correct to assume that the target type can't be much more 
than a typical bag of public getters and setters?

Some frameworks such as Hibernate are able to populate non-public member 
fields. Combined with a package-private default constructor this offers a 
nice way to implement row-level logic. As an example, you may prefer using 
a method such as setInterval(start, end) rather than letting users modify 
start and end dates individually.

Kind regards

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to