1 Reply Latest reply on Nov 23, 2005 10:49 AM by Adrian Brock

    JBoss Oracle Unicode support

    Quande Ren Newbie

      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);
      


      But the problem is that in the EJB CMP, I have no control of the SQL.

      Anyone have any solution?

      Thanks for any help.

      Quande.