Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
org.springframework.orm.hibernate3.support.BlobByteArrayType有什么用?为什么不将 a 映射byte[]为 Hibernate 基本类型“二进制”?
byte[]
有什么区别?什么时候用哪个?
谢谢!
BlobByteArrayType 允许您将任意字节数组映射到数据库中的 Blob 字段。hibernate 的二进制类型允许您将字节数组映射到varbinary字段。
在MySQL中,Blob 与 varbinary 非常相似,但它可以随心所欲地增长。