-->
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: inputstream in domain object to be inserted as blob in DB
PostPosted: Tue Jan 18, 2011 12:46 pm 
Newbie

Joined: Tue Jan 18, 2011 12:33 pm
Posts: 2
Hello,

My domain object has a inputstream variable and I want to insert this into Oracle database blob colum.
Though I found many references to do the same but my problem is that the domain objects are not part of persistence layer, but they form a separate layer and I dont want to duplicate them in persistence layer and hence I can not create a BLOB in domain objects.

So, if anybody can help me out with a suggestion, wherein I can convert the inputstream to blob in my persistence layer itself may be somehow in hbm file or somewhere.

Thanks in advance!!


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.