Hello,

2013/8/22 Christian Hammers <[email protected]>

> Hello
>
> My tables are usually called with plural names like "customers" as they
> contain
> many rows. The generated ActiveRecord and POJO classes do thus also have
> this
> name which looks ridiculous especially if I have lists of them:
>
>   Customers c = new Customers(); // a single one
>   List<Customers> customerss;    // multiple
>
> Is there any chance that JOOQ could be a little bit more clever about this?
>

jOOQ itself: Currently no. But you can:
http://www.jooq.org/doc/3.1/manual/code-generation/codegen-advanced/

By implementing a custom naming strategy, you can remove the trailing "s"
from every table name.


> The Propel ORM for example does a really good job using:
>   propel.builder.pluralizer.class = builder.util.StandardEnglishPluralizer
> See http://propelorm.org/documentation/whats-new.html#better-pluralizer


I'll have a look into that. Of course, a contribution would be very welcome
as well ;-)

Cheers
Lukas

-- 
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/groups/opt_out.

Reply via email to