Hi, there,
I need to have my application support unicode. the table column type is NVARCHAR2, I use EJB CMP.
I know that I can use following code to insert unicode into table:
PreparedStatement updateStmt = con.prepareStatement("update LocaleMessage set message=? where referenceId=0 and thelanguage='cn'");
((OraclePreparedStatement)updateStmt).setFormOfUse(1, OraclePreparedStatement.FORM_NCHAR);
updateStmt.setString(1, message);
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp
Wrong forum. EJB/Persistence.