Duplicate Getters and Setters in same class after generate

28 views
Skip to first unread message

mihal...@gmail.com

unread,
Jun 16, 2017, 4:18:54 AM6/16/17
to jOOQ User Group
Hello, when I try generate in same generated class duplicate. Example

public class _StValuecountRecord 

/**
* Setter for <code>public._st_valuecount.value</code>.
*/
public void setValue(Double value) {
set(0, value);
}

/**
* Getter for <code>public._st_valuecount.value</code>.
*/
public Double getValue() {
return (Double) get(0);
}

/**
* Setter for <code>public._st_valuecount.value</code>.
*/
public void setValue(Double value) {
set(1, value);
}

/**
* Getter for <code>public._st_valuecount.value</code>.
*/
public Double getValue() {
return (Double) get(1);
}


use connection to PostgreSQL 9.4. 
Trying use versions 3.9.3 , 3.9.1 , 3.8.7 and result similar, duplicate in equal or other classes.

Lukas Eder

unread,
Jun 16, 2017, 4:21:51 AM6/16/17
to jooq...@googlegroups.com
Hello,

I suspect this is because of

Is this generated code from an overloaded table-valued function?

Best Regards,
Lukas

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

mihal...@gmail.com

unread,
Jun 16, 2017, 5:33:22 AM6/16/17
to jOOQ User Group
Yes, have a function, one little function for work with schemas (schema name  as column value in public, and if need other schema then function return query with other schema name )

Testing in other server without functions and all work fine.

JOOQ can work with cross schema tables if schema name saved in column? if no then. Will be added working with functions and when?
Best regards.

пятница, 16 июня 2017 г., 11:21:51 UTC+3 пользователь Lukas Eder написал:
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.

Lukas Eder

unread,
Jun 16, 2017, 5:49:12 AM6/16/17
to jooq...@googlegroups.com
Thank you for your feedback. Note you can also turn off the code generation for all routines (using includeRoutines) or for specific objects (using include / exclude). This is documented here:


Indeed, by default, jOOQ generates fully qualified objects, meaning that columns are qualified with their schema.table prefix all the time.

Let me know if you have any specific questions about the latter.
Lukas

To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages