Storing serialized objects is definitely not a good way to do this.
Assuming you are going to use a normal, relational database to do this, then the most common approach in
Java is to use the
Java Persistence API (JPA), which is the standard API for mapping objects to / from a relational database. There are different implementations of JPA available, of which
Hibernate is probably the most used and well-known one.
Storing serialized objects has a number of big drawbacks. For example, you cannot use regular database tools to look at the content of the database. You'd have a column with binary data, and database tools don't show you what data the serialized objects contain. Also, you cannot take advantage of the features of the database, such as primary key and foreign key relationships on one or more of the fields of the objects, because all the fields are hidden in binary blobs of data.
Also, Java's serialization mechanism is not suitable for long-term storage of data, because it's tied too closely to the code of your classes. If you decide to change something, for example add or rename a field in a class, then you will not be able to read the previously serialized objects anymore, they will have become incompatible with the new version of your class.