Thanks a lot for your feedback, Bill. I will comment on a few items already now:
Templating language >> > After working with both Slick code generation and JOOQ code generation I > have been curious why no one has tried to use an HTML templating library. > It is code that generates code dynamically and already has tons of useful > built in features such as includes / partials / conditionals / loops. I > would be interested to try and take a JSON representation of the database > and run it through HTML templates and see how natural it feels. I think an > added benefit would be the ability to add hooks into the code generation > wherever you wanted by just modifying / customizing a few html templates. > Interesting. I hadn't thought about HTML templating libraries. In the Java ecosystem, velocity used to be a popular templating language. But as most templating languages are external DSLs, they are equally flawed compared to Xtend in that they can't really interact well with Java APIs (e.g. with jOOQ-meta) Xtend on the other hand is a compiled language with built-in templating capabilities and excellent IDE support: https://eclipse.org/xtend/documentation/203_xtend_expressions.html#templates I think it will be hard to beat Xtend in this area, although I'm very open to suggestions... Custom code >> > I have had a pretty good experience customizing the JOOQ DAO generators on > my own. I was able to auto generate some additional queries that I would > use frequently. Getting the code in the right places was sometimes > difficult. I felt somewhat limited by the hooks to add custom code. At the > same time I don't think adding additional hooks is the right solution. You > could end up with tons of before / after hooks for every section of code > and that could get out of hand quickly. > Interesting! Would you mind sharing an example of such a method / query? I'm curious to see if a common use-case might be hidden, here. -- 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.
