Hi Lukas,

> Out of curiosity, can we augment an already existing MyEnum to implement
> the
> > Converter interface so all code is located at a single place if we want
> it
> > to? Would jOOQ allow it?
>
> Java enum types can implement any interface. I don't see any problem
> with that. Beware that enum types cannot extend base classes for
> convenience...
>

I know. My innocent question was more like: are you sure that the names you
chose in your Converter class cannot clash with user-enums so that they can
safely implement this interface?
to() and from() may already exist because these are common terminology,
whereas toSQLType()/fromSQLType() are unlikely to exist in user enums, and
they can even call them or know what these methods do from their name.



>  > What would happen if one generated schema defines certain mappings, and
> > another generated schema defines other mappings but for the same types
> > (especially calendars or dates)? Running with one would be fine but could
> > running with two result in collisions in the registry?
>
> The mappings' scope is not a single schema.
>

which means collisions.

-Christopher

Reply via email to