简体   繁体   中英

Forcetype Expressions doesn't work for jooq version 3.10

I am using a custom converter and using the following expression in the forceType. But it looks the the expression doesnt work and the converter doesnt get executed.

<forcedType>
        <name>UPOrigin</name>
        <expression>up_entries\.origin|up_methods\.origin</expression>
</forcedType>

Any help would be great.

Until version 3.11, you have to either fully qualify your expressions (including schema name) or leave them unqualified. I've created a feature request to improve this: https://github.com/jOOQ/jOOQ/issues/7947

In jOOQ 3.11, any of these should work:

Using an explicit schema name:

<forcedType>
    <name>UPOrigin</name>
    <expression>my_schema\.(up_entries\.origin|up_methods\.origin)</expression>
</forcedType>

Matching all schemas:

<forcedType>
    <name>UPOrigin</name>
    <expression>.*?\.(up_entries\.origin|up_methods\.origin)</expression>
</forcedType>

Using unqualified column names:

<forcedType>
    <name>UPOrigin</name>
    <expression>origin</expression>
</forcedType>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM