In ObjectNode and ArrayNode (or similar) psql-enum's are recognised as user defined and treated as composite types, while they are a simple type (just text).
There is an easy workaround, that is converting the enum in text in the psql query, but it would be nice to use directly enums.