You can create another propety in the class cNPJStringwhere getCNPJString() returns CNPJ.toString() and givethe mapping of cNPJString property instead of CNPJ.