java 11
jooq 3.13.6
postgres 12

Setters and getters are being create twice for returned columns of one 
postgres function.  The first of a pair of setters calls "set(N, value)" 
and the second calls set(N+1, value).  Similarly for the getters.

I have forked the mcve, cloned, tweaked the pom[1] and mvn clean verify 
generates the same duplication I'm seeing in my working environment.
But of course this is dependent on my database and the function in 
question.  Do I check-in a dump file (90K)?

Here's what I know:
There are many public functions but it appears this is the only one which 
causes this behaviour.

This is in fact an overloaded function (same name, different args, same 
return structure).  
In ".../public_/tables" directory, there is only one definition of the 
function generated and the "Call this table-value function" uses the 
shorter list of args (text,text args v. text,text,double,int).  This 
version of the function simply adds the two values (defaults) and calls the 
four-arg version. Each column definition (TableField<MyRecord>, Class) is 
duplicated and this is where we go afoul of the compiler.

The constructors in the generated Record (".../public_/tables/records") has 
each of the three returned column duplicated.

Would it suffice to check-in just the definition of the functions (sql)? 
And the generated, non-compiling java files?



-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/6601a73b-3a14-4239-b098-a0f6a54fc381n%40googlegroups.com.

Reply via email to