Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is org.springframework.orm.hibernate3.support.BlobByteArrayType good for?

What is org.springframework.orm.hibernate3.support.BlobByteArrayType good for?
Why not map a byte[] as the Hibernate basic type "binary"?

What are the differences? When to use which?

Thanks!

like image 208
Henning Avatar asked Nov 14 '22 15:11

Henning


1 Answers

The BlobByteArrayType lets you map arbitrary byte array into a Blob field in the database. The binary type of hibernate allows you to map a byte array into a varbinary field.

In MySQL, Blob is very similar to varbinary, but it can grow as much as you like.

like image 122
David Rabinowitz Avatar answered Jan 04 '23 23:01

David Rabinowitz