¡@

Home 

java Programming Glossary: lob

proper hibernate annotation for byte[]

http://stackoverflow.com/questions/3677380/proper-hibernate-annotation-for-byte

with byte attributes 1k 200k in size . It uses the JPA @Lob annotation and hibernate 3.1 can read these just fine on all.. as it should do . @Entity public class ConfigAttribute @Lob public byte getValueBuffer return m_valueBuffer We had to upgrade.. fix so far but I did notice that if I just remove the @Lob it uses the postgresql type bytea which works but only on postgres..

JPA: how do I persist a String into a database field, type MYSQL Text

http://stackoverflow.com/questions/3868096/jpa-how-do-i-persist-a-string-into-a-database-field-type-mysql-text

improve this question Since you're using JPA use the Lob annotation and optionally the Column annotation . Here is what.. . Here is what the JPA specification says about it 9.1.19 Lob Annotation A Lob annotation specifies that a persistent property.. JPA specification says about it 9.1.19 Lob Annotation A Lob annotation specifies that a persistent property or field should..