-
1. Re: JBoss creates tables without being asked
benw Jul 23, 2002 11:18 AM (in response to cptnkirk)If you haven't done so, take a look at the jbosscmp-jdbc.xml descriptor file. In it, there is a element called <create-table> and <remove-table> which you can specify whether you want JBoss CMP to automatically create or remove the tables for you. The default value for them is true.
This stuff is documented in the JBossCMP 2.0 documentation written by Dain Sundstrom.
Hope this help,
Ben -
2. Re: JBoss creates tables without being asked
cptnkirk Jul 23, 2002 2:24 PM (in response to cptnkirk)Ok. Found the <create-table> field. What field does JBoss use for telling it the table name to interact with? I was under the impression that it was the abstract-schema field. However if this were the case JBoss should have created a table called sequence, not sequenceentity. Does JBoss use another field like ejb-name or something as the table name? Is this standard?
I'll get the CMP Docs. Tried the other night and the site was flaky (couldn't register/place orders).
Thanks,
Jim -
3. Re: JBoss creates tables without being asked
dsundstrom Jul 24, 2002 1:40 AM (in response to cptnkirk)There are no standards for EJB to SQL mapping. JBoss curently uses the ejb-name for the default table name, as abstract schema name is not required.