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!!
|