Saving serializable object by using HibernateJeff Yu Java, JBoss 2008-08-04
Well, sometimes you might want to save the object as serializable into database, with the Hibernate, it is quite simply for you to do that.
1). Using @Lob annotation from hibernate-annotation library
2). Write the ObjectInputStream, ObjectOutputstream like following thread’s code.(sebastian mitroi serializable java objects in mysql)