Good morning,
 
Thanks for your post, it's very interesting to see new perspectives and set 
of solutions ;)
 
Kind regards,
 
Gian
 

On Friday, April 10, 2015 at 7:29:54 AM UTC+2, [email protected] wrote:

> A few years ago I did the same. I was pretty happy with the outcome but 
> had to write a couple Gradle plugins, other integration code, and get a few 
> bugs fixed to arrive at the ideal workflow.
>
> The object to object mapping is the annoying outcome of this separation. 
> This is where ModelMapper <http://modelmapper.org/> comes in handy 
> because usually the Jackson <-> Service <-> Jooq models are similar and 
> minor tweaks lets the mapping flow through seamlessly. I used 
> jsonschema2pojo <http://www.jsonschema2pojo.org/> so that the api layer 
> was also schema driven and fed the models into Swagger for documentation. 
> You still need to write unit tests to validate that the marshalling worked 
> as expected, which is covered by the behavioral tests you should be writing 
> anyways.
>
> The result was a workflow with the benefits of an MDA, but using libraries 
> instead of being coupled to a framework. Then we were able to opt-in or 
> out, and pivot tools, without a lot of fuss. The hardest part was that 
> since all the boiler plate was code generated the build needed to be smart, 
> so I had to write a few plugins (Flyway, jOOQ, jsonschema2pojo) and fight 
> with the IDEs to integrate intelligently.
>
> On Thursday, April 9, 2015 at 1:28:35 AM UTC-7, Gian wrote:
>>
>> Good morning all,
>>  
>> In our code we are thinking of surfacing the data extracted with the help 
>> jOOQ to JSON
>> by using the Jackson library in our REST-layer. Basically the latter has 
>> no notion of jOOQ.
>>  
>> It works fine, but I was wondering whether anyone can share his/her 
>> experiences with
>> this type of approach.
>>  
>> Have a nice day,
>>  
>> Gian
>>
>

-- 
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