-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: blob / file mapping
PostPosted: Thu Mar 17, 2005 3:22 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.