Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating UserType that handles binary data

 
Ramesh Etta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I am using Spring MVC Framework and hibernate in my application. Now the problem is when i am handling uploading of binary data to the database(oracle) i need to write the mapping file and specify the type of the property that handles the blob column. I heard that we can create a userType that implements UserType interface, to handle that. can anyone send me the code or guide me how to create the userType that handles blob data in oracle.

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you creating a UserType for BLOBs? Hibernate already supports them with the "binary" type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic