Hi - It looks like you want control over how Bar is constructed, using Bar.Builder, instead of letting ModelMapper construct it. If that is the case you'll want to use a Provider. Providers can be configured per property <http://modelmapper.org/user-manual/property-mapping/#providers> or more broadly <http://modelmapper.org/user-manual/providers/>.
Cheers, Jonathan On Wednesday, January 21, 2015 at 2:24:36 AM UTC-8, [email protected] wrote: > > Hi, first of all i want to say that I am glad of all the jOOQ developers, > I've started the project using it and I like it very much. > > By the way, I'm facing a problem: I am trying to integrate the modelMapper > with jOOQ in my application but I am using the builder pattern to build my > entities. Is there an easy way to use the builder pattern with ModelMapper? > > With single entities I have no problem, I just write: > Entity e = mapper.map(record, Builder.class).build(); > > The problem is when I have entities inside them, for example: > class Foo { > private final Bar bar; > } > > The mapper tries to construct directly the Bar entity instead using the > Bar.Builder class. > > Thank you > -- 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.
