-
1. Re: How to mapping mySQL TEXT type?
fbiaggi Dec 4, 2001 3:07 PM (in response to andywyj)Ciao,
VARCHAR, in EJB is a String.
ex.
<sql-type>TEXT</sql-type>
<jdbc-type>VARCHAR</jdbc-type> -
2. Re: How to mapping mySQL TEXT type?
andywyj Dec 7, 2001 2:43 AM (in response to andywyj)i try to use your reference but have runtime error:
TRANSACTION ROLLBACK EXCEPTION:Load failed;
so i try to use CLOB mapping TEXT
<java-type>java.sql.Clob</java-type>
<jdbc-type>CLOB</jdbc-type>
<sql-type>TEXT</sql-type>
but also have runtime error:
[wbcontentBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
java.sql.SQLException: Unable to load a ResultSet column 6 into a variab
le of type 'java.sql.Clob': java.io.StreamCorruptedException: InputStream does n
ot contain a serialized object; nested exception is:
java.rmi.ServerException: Load failed; nested exception is:
java.sql.SQLException: Unable to load a ResultSet column 6 into a variab
le of type 'java.sql.Clob': java.io.StreamCorruptedException: InputStream does n
ot contain a serialized object
who can help me? tks -
3. Re: How to mapping mySQL TEXT type?
fbiaggi Dec 7, 2001 2:03 PM (in response to andywyj)We have many TEXT types fields, without problems.
Have you the latest mySQL and the latest mm JDBC drivers ? -
4. Re: How to mapping mySQL TEXT type?
andywyj Dec 10, 2001 2:34 AM (in response to andywyj)mySQL version is 3.23.38
JDBC Driver version is mm.mysql.jdbc 1.2c -
5. Re: How to mapping mySQL TEXT type?
fbiaggi Dec 10, 2001 8:44 AM (in response to andywyj)I think you should change your mm. drivers,
now at version 2.0.8
Ciao.