Missing method to get value of ReportOutputType from REPORT_TEMPLATE entity to save to database

I write the long time needed backup program for a Jmix application.

When I read the entity ReportTemplate I need to get the Integer Value of the ReportOutputType as this value is stored in the database.

I do not see any chance to expose this value ( e.g. 20, not pdf ). Do I oversee something, or is there a method missing for extracting this Integer value ?

Regards
Felix

Hi,

Every inheritor of io.jmix.core.metamodel.datatype.EnumClass has the getId method which returns the actual DB value. The ReportOutputType is not an exception:

Screenshot 2026-01-08 at 13.21.59

Regards,
Gleb