Class:
@Entity
public class ReportParam extends AbstractModel implements JRParameter {
@Column
private String nome;
@Column
private String descricao;
@Column
private Class<?> classe;
The goal:
Use the instantiated attribute reportParam.getClasse () as cast in a line of code, in the specific situation, I get a String "10/01/2018", and need to convert it to Date and / or other types (Integer, String , ...) as follows:
//Cast Magico?
minhaData = (reportParam.getClasse()) "10/01/2018";