On Monday, April 28, 2014 1:09:48 PM UTC-7, Garret Wilson wrote:
>
> ...
> But it doesn't give me what I want. With the changes you indicated, I 
> still have an ugly ExampleRecord.setFoo_a3bar().
>
> I don't find the manual very clear about the distinction among 
> <fieldIdentifier>, <fieldMember>, <fieldSetter>, and <fieldGetter>. I had 
> assumed that setting fieldIdentifier would automatically affect all the 
> getters and setters for column names in records. This appears not to be the 
> case. So how do I change field getters and setters? Do I need both a 
> <fieldSetter> and <fieldGetter> section, both containing identical 
> information? (Isn't it natural to think that a developers wants to use the 
> same scheme for both getters and setters by default?) Or am I doing it 
> wrong?
>

So it appears that I have to use <fieldSetter> and <fieldGetter>separately, in 
addition to the other definitions. Worse, with a 
<fieldGetter> expression of ^(.+):(.+)$ and a transform of UPPER, an output 
expression of $1_$2 yields ExampleRecord.FOO_BAR(). That's obviously not 
right! So I tried an output expression of get$1_$2, and that gives me 
ExampleRecord.GETFOO_BAR(). Ack! And all this because a recent version of 
jOOQ forces URI-encoding with no option to turn it off.

...and I still don't know what <fieldMember> refers to. If all this is in 
the manual, I missed it.

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