Joined: Thu Mar 17, 2005 2:16 pm Posts: 1
|
hi!
I've implemented a FileUserType class which returns a class of type File.
the thing i do in nullsafeget is:
- create temp file
- get binarystream from resultset
- copy stream from resultset to fileoutputstream of tempfile
- return tempfile
in the deepcopy or replace method i create a new temp file and copy the contents of the file.
the problem is how do i tell hibernate to delete the temp-file at the end?
none of the hibernate eventlisteners seems to be the right spot. :-(
thank you in advance,
chris
hibernate version 3.0rc1
database: mysql 4
transaction.factory_class is org.hibernate.transaction.JDBCTransactionFactory
hibernate.cache.provider_class is org.hibernate.cache.HashtableCacheProvider
|
|