Hi, fedo. I think the reason Hibernate is complaining about your TEXT datatype is that you're not providing it with any clues about the column's type in your mapping document. Try changing:
Code:
<property name="testo" type="java.lang.String">
<column name="testo" length="500" not-null="true" />
</property>
to:
Code:
<property name='testo" type="string">
<column length="500" sql-type="CLOB" not-null="true"/>
</property>
I'm not sure the "length" attribute will do anything, since I wasn't aware you could constrain MySQL's TEXT datatype, but if I recall correctly, Hibernate will understand how to translate the "CLOB" type to MySQL. Unfortunately, I don't currently have MySQL installed anywhere locally to test this theory.
Be sure to let me know if this worked! :)