r/jOOQ • u/_BlackPhantom • Feb 04 '22
When using JOOQ's codegen for generating Entities for Oracle, the data type of fields is Object regardless of the data type in Oracle tables
I am using codegen to generate Entities for Oracle from a live connection. The Entities get generated but the data types of the fields corresponding to the columns in the tables is Object except for the oracle type date (maps to java's LocalDate). And a @Deprecated annotation is added to the getter.
I've tried to look in the documentation if I am missing a flag for data type conversion but couldn't find one.
private Object empId; // int in oracle
private Object empName; // varchar(50) in oracle
private LocalDate joinDate; // date in oracle The jooq codegen version I am using is 3.14.6 (community edition). Am I missing anything in the configuration or is this type mapping not supported for oracle in the community edition?