[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem with CHAR data types

shaikbash do-not-reply at jboss.com
Thu Jun 19 11:04:57 EDT 2008


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159320#4159320

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159320



More information about the jboss-user mailing list