On Monday, April 28, 2014 7:25:46 AM UTC-7, Lukas Eder wrote:
>
>
>
>>
>>
>>> ...
>>> Or your own programmatic strategies:
>>> http://www.jooq.org/doc/latest/manual/code-generation/
>>> codegen-generatorstrategy/
>>>
>>
>> Ooh, that looks promising! Thanks! I'll investigate that immediately.
>>
>
> Yes, I think that would be the best way forward.
>
>
Hmmm... this is not working. I'm sure I'm doing something wrong. I just
want to force the conversion of foo:bar to FOO_BAR (e.g. setFOO_BAR). So
following the examples, I try:
<strategy>
<matchers>
<fields>
<expression>^(.+):(.+)$</expression>
<fieldIdentifier>
<transform>UPPER</transform>
<expression>$1_$2</expression>
</fieldIdentifier>
</fields>
</matchers>
</strategy>
That gives me an error: Cannot configure instance of
org.jooq.util.jaxb.MatchersFieldType from ^(.+):(.+)$
Oddly enough, the expression ^(.*?)_BOOK_(.*)$ straight from the online
manual<http://www.jooq.org/doc/3.3/manual/code-generation/codegen-matcherstrategy/>doesn't
work, either.
--
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.