2 Replies Latest reply on Jul 11, 2004 3:46 PM by tomerbd

    Foreign key constraint not added as requested ...

      I'm using mysql , jboss.
      following is the important part of my jbosscmp-jdbc.xml, notice the preferred-relation-mapping tag...

      <jbosscmp-jdbc>
       <defaults>
       <datasource>java:/MySqlDS</datasource>
       <datasource-mapping>mySQL</datasource-mapping>
       <create-table>true</create-table>
       <remove-table>true</remove-table>
       <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
       </defaults>
      </jbosscmp-jdbc>
      


      I received this message from jboss :

      Foreign key constraint not added as requested

      Why didnt it create the foreign keys ?