First off let me say how impressed I am with jooq, great job! I'm trying to migrate from a custom data access library to jooq. The current implementation uses VO/DTOs that are annotated with JPA annotations. The fetchInto() works great. Now I can't completely ditch the old framework but need to make jooq work side by side. The problem I have is that the JPA annotated DTOs are current enhanced by cglib and cglib interceptors track changes to the DTO. So if I want to query with jooq and persist with the custom framework I need to be able to have jooq fetchInto() a custom cglib enhanced object.
In jooq 3.1 (just noticed 3.2 today) there is only fetchInto(class). Ideally I would like fetchInto(class, obj) or some ability to register a custom object instantiator. I think the first option would be more flexible as the obj passed in can be created based on contextual information. Basically I want to instantiate the object and do manipulations to it and then tell jooq read metadata from the class but set fields on the obj I constructed. Does that make sense? I'd be willing to even do the enhancement myself if this seems okay. Some general pointer on what to change would be good. Or maybe jooq can already do this in a different way or now in 3.2. Thanks, Darren -- 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/groups/opt_out.
