I'm doing some tests using PostgreSQL 9.5 and jOOQ 3.8.4.
Specifically, I want to create a domain like the following:
CREATE DOMAIN my_something NUMERIC(4,2);
then I want to create a type as follows:
CREATE TYPE my_type (
  something my_something;      
);
and finally, I have a table that has a the type as a field, e.g.:
CREATE TABLE (
  id bigserial;
  type my_type;
);
I see that jOOQ 3.8.4 generates the mapping of the field something as Object (both int the table record and in the POJO). I was expecting BigDecimal since the domain uses a NUMERIC.
Am I wrong? If not, is there any way to overcome the issue?
Maybe I could use customTypes and forcedTypes to register a converter, but I'm not sure it works with user defined types! Any experience on this side?