I am trying to figure out the easiest way to use Jooq alongside some kind
of mapping tool like ModelMapper, JPA, or some such thing. I haven't been
able to find a full and proper example with a simple one-to-many.
For example, with this simple result set from a joing between users and
orders. Result set:
┌─────────┬──────┬──────────┬────────────┐
│ user_id │ name │ order_id │ order_desc │
├─────────┼──────┼──────────┼────────────┤
│ 1 │ john │ 10 │ order1 │
│ 1 │ john │ 20 │ order2 │
│ 2 │ mary │ 30 │ order3 │
│ 2 │ mary │ 40 │ order4 │
└─────────┴──────┴──────────┴────────────┘
Model
User {
Integer userId;
String name;
List<Order> orders;
}
Order {
Integer orderId;
String description;
}
I know that Jooq doesn't do this nor is/should be responsible for mapping.
I just can't find an example using either ModelMapper or JPA or anything
that actually does it. Any thoughts or places you can point me to with a
more full example?
--
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.