Re: '_' is a keyword error

2019-02-20 Thread Lukas Eder
I'm afraid it doesn't seem to be possible to re-define the enumIdentifiers,
that's a missing feature. You'll have to implement a programmatic generator
strategy instead. I've created a feature request for the missing feature:
https://github.com/jOOQ/jOOQ/issues/8343

On Wed, Feb 20, 2019 at 9:35 AM Christian Master  wrote:

> Thank you for the help.
> I use the gradle plugin, so I try to do the magic in my buid.gradle.
> With a strategy it should just put another _ before every enum, but the
> matcher wont work. (unexpected token enum. With my beginner skills looking
> @ https://www.jooq.org/xsd/jooq-codegen-3.11.0.xsd enum should be
> correct, or?
>
> strategy {
> name = null
> matchers {
> enums {
> enum {
> enumClass {
> expression = 'T_$0'
> }
>
> }
> }
> }
> }
>
> Am Montag, 17. Dezember 2018 10:19:48 UTC+1 schrieb Lukas Eder:
>>
>> Thanks a lot for your report. This is a known issue - the relevant github
>> issue is https://github.com/jOOQ/jOOQ/issues/4703
>>
>> The workaround for you will be to use a generator strategy:
>>
>> - programmatic:
>> https://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy
>> - configurative:
>> https://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy
>>
>> I hope this helps,
>> Lukas
>>
>> On Sat, Dec 15, 2018 at 10:56 PM Christian Master 
>> wrote:
>>
>>> I get in my generated UserSslType class
>>>
>>> 
>>> public enum UserSslType implements EnumType {
>>> _(""),
>>> ANY("ANY"),
>>> X509("X509"),
>>> .
>>>
>>> jdk12-ea+22
>>> gradle 5.0
>>> nu.studer.jooq 3.0.2
>>> mysql-connector-java 6.0.6
>>>
>>> sourceCompatibility = 9
>>> targetCompatibility = 9
>>>
>>> the error:
>>> error: as of release 9, '_' is a keyword, and may not be used as an
>>> identifier
>>>
>>> Someone has an idea?
>>> Thx
>>> c
>>>
>>>
>>> --
>>> 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 jooq-user+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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 jooq-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jooq-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: '_' is a keyword error

2019-02-20 Thread Christian Master
Thank you for the help.
I use the gradle plugin, so I try to do the magic in my buid.gradle.
With a strategy it should just put another _ before every enum, but the 
matcher wont work. (unexpected token enum. With my beginner skills looking 
@ https://www.jooq.org/xsd/jooq-codegen-3.11.0.xsd enum should be correct, 
or?

strategy {
name = null
matchers {
enums {
enum {
enumClass {
expression = 'T_$0'
}

}
}
}
}

Am Montag, 17. Dezember 2018 10:19:48 UTC+1 schrieb Lukas Eder:
>
> Thanks a lot for your report. This is a known issue - the relevant github 
> issue is https://github.com/jOOQ/jOOQ/issues/4703
>
> The workaround for you will be to use a generator strategy:
>
> - programmatic: 
> https://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy
> - configurative: 
> https://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy
>
> I hope this helps,
> Lukas
>
> On Sat, Dec 15, 2018 at 10:56 PM Christian Master  > wrote:
>
>> I get in my generated UserSslType class 
>>
>> 
>> public enum UserSslType implements EnumType {
>> _(""),
>> ANY("ANY"),
>> X509("X509"),
>> .
>>
>> jdk12-ea+22
>> gradle 5.0
>> nu.studer.jooq 3.0.2
>> mysql-connector-java 6.0.6
>>
>> sourceCompatibility = 9
>> targetCompatibility = 9
>>
>> the error:
>> error: as of release 9, '_' is a keyword, and may not be used as an 
>> identifier
>>
>> Someone has an idea?
>> Thx
>> c
>>
>>
>> -- 
>> 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 jooq-user+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 jooq-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.