0 Replies Latest reply on Jun 19, 2008 11:04 AM by Shaik Basheer

    Problem with CHAR data types

    Shaik Basheer Newbie

      Hi,
      I have an EJB-3.0 application running on JBoss 4.2.2. When I select a CHAR type column from an Oracle-9i table, using the javax.persistence.Query, it returns java.lang.Charater type data, which can hold only one char eventhough my column length is more than 1. I changed the data type mapping in the standardjbosscmp-jdbc.xml as


      <java-type>java.lang.String</java-type>
      <jdbc-type>CHAR</jdbc-type>
      <sql-type>CHAR</sql-type>


      But, still does not help. Any help on this is greately appreciated.