Hi Roger, thank you very much for chiming in and for your feedback!

2015-12-31 0:03 GMT+01:00 RIT <[email protected]>:

> *4. Generator strategies*
>>
>>
>> Most customisation is about naming style. Do you want your database
>> objects in PascalCase? camelCase? UPPER_CASE? lower_case?
>>
>> Is this feature sufficient? What's missing here?
>>
>> I know it was raised a year or two back, but it would be nice to be able
> to write
>
> create.SELECT   (AUTHOR.FIRST_NAME, AUTHOR.LAST_NAME, count())
>       .FROM     (AUTHOR)
>       .JOIN     (BOOK).ON(AUTHOR.ID.equal(BOOK.AUTHOR_ID))
>       .WHERE    (BOOK.LANGUAGE.eq("DE"))
>       .AND      (BOOK.PUBLISHED.gt(date("2008-01-01")))
>       .GROUP_BY (AUTHOR.FIRST_NAME, AUTHOR.LAST_NAME)
>       .HAVING   (count().gt(5))
>       .ORDER_BY (AUTHOR.LAST_NAME.asc().nullsFirst())
>       .LIMIT    (2)
>       .OFFSET   (1)
>
> I know its not very Java like, but uppercase is still the SQL way of writing 
> statements. Also _ for spaces is clear than medial capitals (camelCase) if we 
> are able to step away from Java 'standards'.
>
>  My use of JOOQ is still very much that of a DBA doing some coding and so
> I would like the mapping between SQL scripts and Java code to be as near as
> possible.
>
> (The spacing is just how I pad out SQL statements as it works for me)
>

Hah! :) Yes, I do remember.

In the context of code generation, this might fit in as we would clearly
need to have an API code generator for this, not a metadata code generator.
It would be quite nice to have, perhaps even as an independent commercial
product, for internal DSL generation, but I'm currently not 100% convinced
that the cost/benefit ratio would outshine that of alternative things we
could do... Perhaps, I'm missing an easy way forward with such a project,
though?

-- 
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.

Reply via email to