acttype is an enumcs so you can\'t insert it as a normal string
without casting it to an enumcs INSERT INTO dir_act (actcode,actname,acttype,national_code) VALUES (?,?
You have to define implicit conversion in Postgres along with your type definition, like below:
CREATE CAST (varchar AS animal_type) WITH INOUT AS IMPLICIT;
Than you can skip the explicit conversion in insert; so it works also with Spring Data JDBC and other libs that do generate insert query for you.