Hi Mike,
of course I can do it manually. I'm using java8 so I know there is a
good syntax to do it, but I'm wondering if a more automated solution could
be done.
To put in in a nutshell, I would like map db FK into graph dependency and
use query resultset to fill this structure.
Actually jooq pojo (if you enable jpa annotations) does not contain
relations (just columns) but there are informations to do it.
If there were jpa relations in pojo should be possible to fill graph with
joo flat resultset.
Am I wrong?
I think this aspect is very important in modern services due to use a full
orm is insane IMHO.
I've already take a look into modelmapper but i think and orika but it
seems not thinked to make this type of job.
Il giorno lunedì 26 ottobre 2015 20:09:56 UTC+1, Mike Foody ha scritto:
>
> We're using Scala and simply using the standard collection operations to
> map one object graph into another. If you're using Java 8 you should be
> able to achieve something pretty concise. In our case at least we like the
> no magic solution which is easy to understand and type safe.
>
> If you can't use Java 8 or really don't want to write that code,
> http://modelmapper.org/ looks pretty interesting. I've played with it a
> couple times but never put it into production.
>
> On Monday, October 26, 2015 at 11:03:32 AM UTC-5, Denis Miorandi wrote:
>>
>> This argument probably is not new. I read something but with no
>> soddisfaction.
>> I'm using jooq in a rest api built on top of spring4+reasteay. I've got
>>
>> - db schema
>> - api schema (similar at now to db)
>>
>> so I need to map jooq resultset into an objectGraph to be serialized into
>> json (and reverse as possible)
>> Actually I'm doing it manually but I wondering if a more comfortable
>> approach exists (btw without using orm).
>> I mean something to help me do an automatic mapping between resultset and
>> pojos/objectgraph.
>> Maybe a jpa annotated set of beans could help to map? Does exists a tool
>> to achieve this?
>>
>>
>>
--
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.