I'm having a problem with my one transient integer, yearStarted.  For some
reason, it continuously returns a '0' (instead of the desired integer).

public MyClassToBePersisited(School school, Profile profile) {

        this.school = School.getSchool("", 23);
        this.profile = Profile.getProfile("TEST2", 77, "beach");
    }


>From what I understand, transient fields are not 'serialized'.  Therefore,
when I deserialize it, it automatically returns a '0'.  How the heck can i
get this to work?  I've been working on this for days now.

        // Deserialize the previously saved
        // PersistentTime object instance.
        MyClassToBePersisited myPers = null;
        FileInputStream fis = null;
        ObjectInputStream in = null;

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to