I am trying in this way but it seems not to work correctly. I am using jboss 3.2.5. 
the post create table sql statements are executed by the first entity bean and then 
again by the next one, which issues an error as it tries to insert again with the same 
primary key. why that??
I ve added the post table create tag also to a relation table mapping but there it 
doesn't do anything... here is this part of my jbosscmp-jdbc.xml:

              <relation-table-mapping>
                <table-name>RelTable</table-name>
                <create-table>true</create-table>
                <remove-table>false</remove-table>
                <post-table-create>
                       <sql-statement>INSERT INTO RelTable VALUES (dd, 
dd)</sql-statement>
                       <sql-statement>INSERT INTO RelTable VALUES (asf, 
sdf)</sql-statement>
                       <sql-statement>INSERT INTO RelTableVALUES (sf, 
sf)</sql-statement>
                </post-table-create>
              </relation-table-mapping>

whats wrong???


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848537#3848537

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848537


-------------------------------------------------------
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

Reply via email to