Joined: Thu Oct 07, 2004 4:30 pm Posts: 3
|
Hello All,
I am gettiing a "Implicit conversion from datatype 'text' to 'varchar' is not allowed. Use the CONVERT function to run this query." error when trying to query on a field that is a "text" in a sql server 6.5 database. Does anyone know how to solve this problem?? Is anything wrong with my xdoclet tags in the object or with the hibernate mapping file property?
My objects are generated using middlegen. Here is the get and set methods for the field that is generating the error
/**
* @hibernate.property
* column="TM_Description"
* length="2147483647"
*
*/
public String getTmDescription() {
return this.tmDescription;
}
public void setTmDescription(String tmDescription) {
this.tmDescription = tmDescription;
}
I generate the hibernate mapping file using java2hbm ant task and this how it is in the mappin g file for the above field:
<property
name="tmDescription"
type="java.lang.String"
update="true"
insert="true"
column="TM_Description"
length="2147483647"
/>
I appreciate any inputs or help that you can provide. Thanks.
|
|