I want to turn this SQL statement into a jOOQ select:
select art_id,
artnr,
pa_bez.arttext(art_id, null, pa_param.text(10, 1)) text,
from artikel;
But I cannot use pa_bez.arttext because in the generated package PaBez I can only find a static method to call the function:
public static String arttext(Configuration configuration, Number pArtId,
String pArttextart, String pSprache,
Number pAufart, Boolean pFallbackArttextart) {
...
}
But no method to use it as a field like I got with other functions:
public static String arttextart(Configuration configuration, String pArttextart,
String pSprache) {
...
}
public static Field<String> arttextart(String pArttextart, String pSprache) {
...
}
Is this a bug or a misunderstanding of jOOQ on my side?
This is the function code:
FUNCTION ARTTEXT
(p_art_id in number
,p_arttextart in varchar2 default 'basis'
,p_sprache in varchar2 default null
,p_aufart in number default null
,p_fallback_arttextart in boolean default true
)
RETURN VARCHAR2