I have a small desktop application that needs to keep some simple but structured data (>10K) for a single user. I’d like some opions as to whether I should serialize the objects or build out some XML data files. I started to serialize things for simplisity and it works but thought I’d ask the community as well for some feedback. Are there drawbacks or potential problems I may be missing?
Share
Best option is to go with file based database. One I tried is HSQLDB which is purely java based.
You can use it with JDBC & be privileged to use SQLs.
You dnot need any database installation, it just takes one jar file thats it & it create separate file with your data.
Example: http://www.hsqldb.org/doc/guide/apb.html
Note: Serialization is not for persistence. If somehow your class changes, it will be very hard to deserialize & it will be as good as data loss.