[EMAIL PROTECTED] wrote:
Hi all,

I have a CMP bean with a field 'description'. This field is a java.lang.String. But can contain more than 250 characters.

What do I have to do to make JBoss persist into a 'TEXT' database field instead of VARCHAR(250)?

All you have to do is to override the jboss default mappings and specify your correct database mappings in jbosscmp-jdbc.xml e.g.:


<cmp-field>
   <field-name>description</field-name>
   <column-name>DESC</column-name>
   <jdbc-type>VARCHAR</jdbc-type>
   <sql-type>TEXT</sql-type>
</cmp-field>

-marek



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to