I am developing an application that have some params as config data. I wrote a swing app and declare a class as ConfigClass.I add configuration params fields to this class and store it by serializable implementation to a file.
During read and write, I apply cryption to protect passwords.
In future versions of my app I will add or del some fields and want my customer don't loose values. so I tried to use "serialVersionUID=34L" That when my customer upgrade my app, new app can read old config and get old/new common fields. In this way my customer not pushed to reenter data again. Problem is when I del fields and above protocol not works well! why?
public class UserConfiguration implements Serializable {
static final long serialVersionUID = 42L;
//USER Define User Config elements
private String bankName;
private String bankCode;
}