How to map Postgres enums to Java enums using hbm2java?

I am unsing hbm2java in a Maven build to generate the Java Entities which works well for basic JDK types.
However I also need it to handle Postgres enums and map those to Java enums. I can’t find a way to make this work.
I’m using Hibernate 6.x so I know it can handle enums directly and so can Postgres but how to do this using hibernate-reverse-engineering XML?

Hi David,
Have you tried plugging in your own implementation of a RevengStrategy?
Cheers,
Koen