I have a JPA entity from table, which handles BigDecimal variables (Pdvhdr), and I need to convert them to PdvhdrType, to make a query.
The problem is that for example, the variable Change Type, I have to convert it to a String (as shown at the beginning), so that in "Public PdvhdrType () {}", it can be accepted as String and the data displayed. Up there all right.
The problem comes when I try to convert from pdvhdr to pdvhdrtye, using Transfer Object, in another class. Since at the moment of converting "TipoCambioS" to BigDecimal, I get the message "The method valueOf (long) in the type BigDecimal is not applicable for the arguments (String)".
I do not know if I'm fine, since I have another problem, because I can not give value to the variable "private BigDecimal Change Type;", since the data has to grab them from the table of the database, so I would have to find a way for the data of that variable to be saved in "private String TypeChangeS = String.valueOf (ChangeChange);"