You will find my technical articles and translations on software in this article. My areas of interest include JAVA - J2EE with all its aspects, specially EJB3, Struts, JSF, Spring, WebServices and other frameworks.

Friday, 28 January 2011

CRUD with Serial Persistence - 2

This is the second part of CRUD with Serial Persistence Tutorial.To have an idea of what a CRUD is please refer to the 'Simple CRUD Tutorial' example on which you can find extensive information in this blog. You can also find information about DAO (DataAccess Objects) in this blog under the title 'Simple DAO Tutorial'.

This part will explain a DAO example with serialization and providethe code for it. This serialization DAO example is built uponthe VectorDAO example in the 'Simple DAO Tutorial'.

In order to make a class serializable you must make all the classesused by it serializable hence: