0 Replies Latest reply on May 2, 2002 5:59 PM by billhuangyu

    Mapping problem with jbosscmp-jdbc.xml

    billhuangyu Newbie

      I want to map a EJB String field as BLOB due to the text is more than 255, I did it like the jbosscmp-jdbc.xml file shows below. Jboss generated error and did not deployed my bean. Inside the jar package,there are other Entity EJBs there. Can everyone help.

      In the JBossCMP-Docs, it did not say about which field is compulsory. My TempBean have relationship with other EJB. Do I need to specify the relationship mapping in the jbosscmp-jdbc.xml file?

      Without using jbosscmp-jdbc.xml file, my application is running without any problem.

      If everyone help, thank U in advanced

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jbosscmp-jdbc SYSTEM "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
      <jbosscmp-jdbc>
      <enterprise-beans>

      <ejb-name>TempBean</ejb-name>
      <table-name>TEMPBean</table-name>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>ID</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>content</field-name>
      <column-name>CONTENT</column-name>
      <jdbc-type>VARCHAR</jdbc-type>
      <sql-type>BLOB</sql-type>
      </cmp-field>

      </enterprise-beans>
      </jbosscmp-jdbc>