When you are getting older, your memory becomes worse, so you need to write down some notes from time to time, hence this place was born.

Saving serializable object by using Hibernate

Jeff 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)