You can store serialized Java objects to a database; e.g. by using a Blob type.
But it is not generally a good idea:
It is is impractical to perform an SQL query that tests the state of a serialized object in any non-trivial way.
Serialized objects tend to be sensitive to changes in the object's code. Dealing with this can be awkward, and not dealing with it can leave you with serialized objects in your database that you can't deserialize any more.
If you want to persist POJOs to relational database, you would be better off using an object-relational mapping, such as JPA or Hibernate.