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.
