Hello,
I develop an application with Hibernate Component (version 2.1.8). I try the Hibernate to see if this problem, for me, is resolved.
So I have an objet with attributes String
Code:
public MyClass {
private String myValue;
/** @hibernate.property
public String getMyValue() {return myValue;}
public void setMyValue(String a) {myValue = a;}
}
When i use "ShemaExport" of Hibernate 2.1.8 (ant Task), i obtain this schma
TABLE MYCLASS
COLUMN MYVALUE VARCHAR(255)
In the next ieration of my application, 255 characters for my attributes, it is limited too much. So i changed my configuration of Hibernate and my new code is :
Code:
public MyClass {
private String myValue;
/** @hibernate.property [b]type="text"[/b]
public String getMyValue() {return myValue;}
public void setMyValue(String a) {myValue = a;}
}
When i use "ShemaUdpate" of Hibernate 2.1.8 (ant Task), i think this task have capacity to change property of colum. The SQL command is very simple : (for e.g. ALTER TABLE MYCLASS ALTER COLUMN myValue TYPE text )
I hope you obtain more information about my problem.
Tks for your help
Franck