I've googled arround to get a BLOB specified with LONGTEXT though for some reason I always get an error message during JBOSS upload (just verifying the DB:) wrong column type note expected : LONGTEXT
what i'm I specifying :
Mysql:(5.1) `note` LONGTEXT default NULL COMMENT 'no default site ',
hibernate -entity (annotation )
@Column(name="note", columnDefinition="LONGTEXT") private String note;//blog
@Column(name="note", columnDefinition="LONGTEXT") public String getNote() {return this.note;}
I tried alternatively adding @Lob and placed the @Column individualy and both on the definition as well as the getNote
I suspect someone who has done it can explain me immediatly
I seam to miss something and always get org.hibernate.HibernateException: Wrong column type: note, expected: LONGTEXT
as I change to MEDIUMTEXT or simply TEXT the error comment changed to expected: MEDIUMTEXT .....
in my googling arround I find that the problem is alreay very old (2005-2008) And was sopposed to be solved in older versions of hibernate. Or better said the Hibernate-jboss-mysql combination. Can can anyone give me a bypass to store long.... very long text elements in an hibernate data base. Text is the most simple item of a database (A for long term stable sollution is the essence of a database)
Is this problem solved in newer versions ? mySQL clearly is continuing the support for LONGTEXT 5.5 .....6 Hibernate ; Multiple newer versions of jboss and hibernate are produced and released There must be a solution or a bypass!!!!!
_________________ XML way to go
|