I know that money type is not good to use in Postgres, but I can't change it and I need to get this value in Java.
I have already tried to use Double, BigDecimal, String, etc. But all of then I get an error like that
Schema-validation: wrong column type encountered in column [xpto] in table [xpto]; found [money (Types#DOUBLE)], but expecting [numeric(19, 2) (Types#NUMERIC)]
I don't know what type I have to declare in my variable. Someone can help me?