-
1. Re: Problems with table creation in jboss3.0
davidjencks Feb 6, 2002 6:05 PM (in response to anakin)maybe you are using cmp2 and should look in jbosscmp-jdbc.xml instead.
-
2. Re: Problems with table creation in jboss3.0
anakin Feb 6, 2002 9:58 PM (in response to anakin)Hi David thanks for the reply.
yes i'm using cmp2 ,but i have also changed the settings in jbosscmp-jdbc.xml ("<create-table>false</create-table>")
Still its creating those tables. -
3. Re: Problems with table creation in jboss3.0
giorgio42 Feb 7, 2002 12:40 PM (in response to anakin)
You have to put the <create-table> and other properties
inside a element at the top.
Two suggestions:
- JBoss should issue a warning when JAWS
is used with CMP 2.x (or even a deployment exception)
- Throw a deployment exception instead of silently
ignoring the settings (or not ignore them).
Georg -
4. Re: Problems with table creation in jboss3.0
ppetit Feb 7, 2002 1:04 PM (in response to anakin)Hi
I'm using CMP 2.0 with JBoss 3.0.0 alpha and this entry works fine :
...
<ejb-name>Meal</ejb-name>
<remove-table>false</remove-table>
<cmp-field>
<cmp-field-name>mealType</cmp-field-name>
<column-name>MEALTYPE</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR(24)</sql-type>
</cmp-field>
...
note I'm using <remove-table> tag instead of <create-table>
Hope this helps.
Philippe