0 Replies Latest reply on Nov 15, 2004 2:59 PM by surlykke

    cmp: Verifying column names

    surlykke Newbie

      Hi

      I'm using jboss 4.0 with postgresql 7.2.
      I have cmp's with attribute-column-name mappings set through jbosscmp-jdbc.xml, e.g:

      <jbosscmp-jdbc>
       .
       .
       <entity>
       <ejb-name>Operator</ejb-name>
       <datasource>java:/jdbc/AmisPooledDS</datasource>
       <datasource-mapping>PostgreSQL 7.2</datasource-mapping>
       .
       .
       <cmp-field>
       <field-name>name</field-name>
       <column-name>operatorname</column-name>
       </cmp-field>
       .
       .
       </entity>
       .
       .
      </jbosscmp-jdbc>
      


      The tables are created via psql-scripts, i.e. not during deployment.
      Is there a way to verify the mapping during deployment: To have jboss check that the (tables and) columns do exist?

      br. Christian Surlykke