You can put a SQL statement into the post-table-create element of your jbosscmp-jdbc.xml file. See chapter 11 of the docs or JBOSS_HOME/docs/dtd/jbosscmp_jdbc_<YOUR_VERSION>.dtd for info.
Or if you're feeling lazy, here's an example: <jbosscmp-jdbc> | <enterprise-beans> | <entity> | <ejb-name>First</ejb-name> | <post-table-create> | <sql-statement>insert into First VALUES(1, 'XYZ')</sql-statement> | </post-table-create> | </entity> | <entity> | <ejb-name>Other</ejb-name> | <post-table-create> | <sql-statement>insert into Other VALUES(1, 'blah')</sql-statement> | <sql-statement>insert into Other VALUES(2, 'blahblah')</sql-statement> | </post-table-create> | </entity> | </enterprise-beans> | </jbosscmp-jdbc> View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848460#3848460 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848460 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
