-->
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.  [ 3 posts ] 
Author Message
 Post subject: Support for java.sql.Blob type
PostPosted: Wed Jun 22, 2016 5:56 am 
Newbie

Joined: Wed Jun 22, 2016 5:43 am
Posts: 2
Hi all,
currently Blob type is not among currently supported types for hibernate ogm. Will it be included in future release or is there a way to deal with it without changing the code of my entities?


Top
 Profile  
 
 Post subject: Re: Support for java.sql.Blob type
PostPosted: Fri Jun 24, 2016 3:35 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi,

You can map binary contents using a byte array like this:

Code:
@Lob
private byte[] data;


Hth,

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
 Post subject: Re: Support for java.sql.Blob type
PostPosted: Tue Jun 28, 2016 5:52 am 
Newbie

Joined: Wed Jun 22, 2016 5:43 am
Posts: 2
Thanks Gunnar, at the end I managed to map binary contents in a byte array as you suggested.


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

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.