I have 3 child classes named CreditAccount, Savings Account & ChequingAccount that extends one superclass named Account.
I am trying to save all the users with their respective account details in a HashMap as follows:
public HashMap<Long, HashMap<String, Account>> userAndHisAccountsObject;
where the HashMap has UserID as key and a HashMap object as its value that contains AccountType as Key and respective account details its value.
I am successfully able to serialize this object but when I try to deserialize it, it throws com.fasterxml.jackson.databind.exc.InvalidTypeIdException
can I get any solution to my issue? Thanks in advance.