I've been trying to figure out why I'm not getting any enum types in my generated code, and I suspect it might be because I am caching the schema by outputting it to XML then generating the code from the XML schema.
I've been doing this because it is much more difficult to connect to the database, and I could check in the schema file then still include the java generator in the maven build which also allows me to quickly iterate and tweak the style of java generation.
In the information_schema.xml, I see the following references to the enum type:
<column>
<table_catalog></table_catalog>
<table_schema>x</table_schema>
<table_name>y</table_name>
<column_name>datasource</column_name>
<data_type>USER-DEFINED</data_type>
<character_maximum_length>0</character_maximum_length>
<numeric_precision>0</numeric_precision>
<numeric_scale>0</numeric_scale>
<ordinal_position>2</ordinal_position>
</column>
Should that be anything different? I looked for the definition of the enum and couldn't find it in the generated information_schema.xml. Maybe I did something that caused it not to capture that type?
-Daniel