I am trying to write a complex Java object to a DB2 (v5) LONG VARHCAR AS BIT DATA column. This object consists of various other objects, which contain other objects, etc.
Doing this to a file is a one-line ordeal. I can't seem to find anything similar to serialize this to the database.
Any ideas of how I can just take this object and persist it (maybe using PreparedStatement.setObject()) with a minimum of changes to the object?