Hi,

I have a cmp entitybean with several String fields, and according to the
documentation java.lang.String should be mapped to 
varchar or char. But when I look at the code generated by GenIC in for
example the class JonasNotificationBean (my bean's name is NotificationBean)
String is mapped to Types.VARBINARY. This will result in a database error.

The code is in the ejbCreate method and looks like this:
....
if (this.firstName == null) {
                pStmt.setNull(6, Types.VARBINARY);
            } else {
                pStmt.setString(6, this.firstName);
            }
....


Björn Pewe, LeanOn AB
Tele: 018-146417
Mobil: 070-5577417
Fax:070-3877417
E-mail: mailto:[EMAIL PROTECTED]
Webb: http://www.leanon.se

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to