Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Data management, Serialization, and software updates.

  1. #1
    Junior Member
    Join Date
    Jan 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Data management, Serialization, and software updates.

    So, this isn't quite JavaFx related, it has more to do with serialization.

    I am new to Java, began learning about a year ago for fun. I discovered JavaFX early on and have mostly stuck with it.

    In October I began creating my own billing software to manage a self storage complex I own.

    Now, to save all the data (customers, units, invoices, billing, etc) I'm using serialization.

    When the software starts, it automatically deserializes the files, and then creates a backup which contain all the serialized objects. I have a feature which allows me to "restore" past backups through deserialization Incase something bad happens.

    So, my issue comes with future updates to the software.
    Currently, I have the software calling up my website which returns a current version and a download link.

    If there's a newer version, it uses the link to download, unzip, and run a separate JavaFX application, which will load the old serialized classes, and convert them into the new serialized classes, and then it downloads the newest version of the software and installs it.

    This was my work around for incompatible serialized classes that are destined to happen as I update the software.

    Is this considered "okay" or am I taking the hard route? Is serialization even meant to be used in this way?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,062
    Thanks
    53
    Thanked 2,612 Times in 2,562 Posts

    Default Re: Data management, Serialization, and software updates.

    to save all the data
    That sounds like a need for a database. Serialization must be an awkward way to save client data.
    Note: I don't know or use databases so I can not help you there.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Data management, Serialization, and software updates.

    Yeah, it would probably make it a lot easier. I think it's probably time for me to learn MySQL.

Similar Threads

  1. Application Updates
    By Unl1m1t3d in forum Java Theory & Questions
    Replies: 3
    Last Post: January 20th, 2018, 04:16 PM
  2. Limit Updates
    By Aigyptus in forum Java Theory & Questions
    Replies: 2
    Last Post: August 17th, 2014, 10:54 AM
  3. Variable updates after loop
    By tecno40 in forum Loops & Control Statements
    Replies: 1
    Last Post: November 9th, 2011, 05:34 AM
  4. [SOLVED] Trojans with last few updates of NetBeans
    By Melawe in forum Java IDEs
    Replies: 11
    Last Post: May 22nd, 2010, 08:33 AM
  5. Build/dependency management software
    By Json in forum The Cafe
    Replies: 0
    Last Post: August 19th, 2009, 03:03 AM