Apply bindings to arrays of type

11 views
Skip to first unread message

Mario Daniel Ruiz Saavedra

unread,
Mar 21, 2018, 4:06:41 PM3/21/18
to jOOQ User Group
Hello, I'm trying to bind some PostgreSQL enums to my customs enums, but when I have column whose type is an array of enum in my table, it does not translate to an array of my type. My binding is something like this

<forcedType>
    <userType>my.domain.AuthenticationType</userType>
    <converter>my.domain.AuthTypeEnumConverter</converter>
    <types>(authentication_type|AUTHENTICATION_TYPE)</types>
</forcedType>

I get a Table object with the following column definition :
 
public final TableField<OauthClientDetailsRecord, AuthenticationType[]> OCD_AUTHORIZED_GRANT_TYPES = createField("ocd_authorized_grant_types", org.jooq.impl.SQLDataType.VARCHAR.asEnumDataType(my.domain.persistence.jooq.enums.AuthenticationType.class).getArrayDataType(), this, "");

Lukas Eder

unread,
Mar 22, 2018, 4:28:21 AM3/22/18
to jooq...@googlegroups.com
Hi Mario,

Thanks for your message. Would you mind posting the CREATE TABLE and CREATE TYPE statements relevant to looking into this?

Thanks,
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.

Reply all
Reply to author
Forward
0 new messages