I have database field which is TEXT and my hibernate gets that as java.sql.Clob and in my form it is shown as a TextField.
When I do save with Form commit() method, it throws this error:
com.vaadin.data.Buffered$SourceException
at com.vaadin.ui.Form.commit(Form.java:338)
Caused by: com.vaadin.data.Buffered$SourceException
at com.vaadin.ui.AbstractField.commit(AbstractField.java:231)
at com.vaadin.ui.Form.commit(Form.java:312)
… 28 more
Caused by: com.vaadin.data.Property$ConversionException: java.lang.NoSuchMethodException: java.sql.Clob.(java.lang.String)
at com.vaadin.data.util.MethodProperty.setValue(MethodProperty.java:709)
Did anyone see the error ?
To recreate this problem
create table myfoo (
notes TEXT
)
public class MyFoo {
private Clob notes;
}
Create a form to display this and have save button doing the commit()