little typo: I did not mean 'jooq-util' but 'jooq-codegen'

Am Dienstag, 8. Januar 2013 11:57:59 UTC+1 schrieb Peter Ertl:
>
> Thanks Lukas,
>
> works like a charm (didn't expect anything else :-)
>
> Altering the naming in case of using the maven plugin is a little 
> cumbersome since you need to define the custom naming scheme in an 
> additional, external dependency / module. Having the naming scheme in the 
> same module as the generator plugin will not work since the generator will 
> execute _before_ maven starts compiling the java files.
>
> I think the usecase of adding a prefix to the class is name is so useful 
> that I suggest adding something like 'PrefixNamingGenerator' in jooq-util. 
> Especially when running side-by-side with JPA or Hibernate since entities 
> usually have the same names as the jOOQ classes which is very 
> inconvenient.This would be similar to querydsl settings 'querydsl.prefix' (
> http://www.querydsl.com/static/querydsl/2.2.0/reference/html/ch03s02.html) 
> which by default uses prefix 'Q'.
>
> Marking all jOOQ classes with an capital 'J' would be cool for me and I 
> could easily lookup jOOQ classes by typing 'J' in the type search of IDEA 
> or eclipse :-)
>
> Cheers
> Peter
>
>
> Am Dienstag, 8. Januar 2013 11:01:32 UTC+1 schrieb Lukas Eder:
>>
>> Hi Peter, 
>>
>> > Is there a simple way to add a prefix to all generated classes, e.g. a 
>> > capital 'J' so table "application" will be mapped to 
>> "JApplication.java"? 
>>
>> The GeneratorStrategy is documented in the manual: 
>> http://www.jooq.org/doc/2.6/manual/code-generation/codegen-advanced/ 
>>
>> It shows how to inject a custom naming strategy in order to achieve 
>> what you're trying to do 
>>
>

Reply via email to