Hi,

I am trying to use the post-table-create with xdoclet but it doesn't produce anything 
in the jbosscmp-jdbc.xml file. I am using jboss 3.2.5 and Mysql. Here is the code of 
the entitybean.

 * @ejb.bean name = "Operator"
 *           type = "CMP"
 *           cmp-version = "2.x"
 *           display-name = "Operator"
 *           description = "Operator EJB"
 *           view-type = "both"
 *           jndi-name = "ejb/OperatorHome"
 *           local-jndi-name = "ejb/OperatorLocalHome"
 *                      primkey-field = "operatorID"
 * 
 * @ejb.persistence table-name = "Operators"
 *                                      
 * @jboss.persistence   table-name = "Operators"
 *                      create-table = "true"
 *                                             post-table-create = "INSERT INTO blabla"
 *  
 * @ejb.permission role-name = "Admin"  
 * @ejb.permission role-name = "Login"  
 *
 * @ejb.finder 
 *   signature = "Collection findAll()"
 *   query = "SELECT OBJECT(o) FROM Operator AS o"
 *   transaction-type = "Supports"
 * 
 * 
 *
 * @ejb:util
 *      generate="physical"
 * 
 */
public abstract class Operator implements EntityBean {

the jbosscmp-jdbc.xml file...

      
         <ejb-name>Operator</ejb-name>
         <create-table>true</create-table>
         <table-name>Operators</table-name>

         <cmp-field>
            <field-name>operatorID</field-name>
            <column-name>OperatorID</column-name>

            <jdbc-type>VARCHAR</jdbc-type>
            <sql-type>VARCHAR(64)</sql-type>

        </cmp-field>
         <cmp-field>
            <field-name>password</field-name>
            <column-name>Password</column-name>

            <jdbc-type>VARCHAR</jdbc-type>
            <sql-type>VARCHAR(64)</sql-type>

        </cmp-field>
         <cmp-field>
            <field-name>fullName</field-name>
            <column-name>Fullname</column-name>

        </cmp-field>
         <cmp-field>
            <field-name>address</field-name>
            <column-name>Address</column-name>

        </cmp-field>

<!-- jboss 3.2 features -->
<!-- optimistic locking does not express the exclusions needed -->
      

What is wrong? Hope anyone knows an answer. 

Thanks, 
Martin

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

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


-------------------------------------------------------
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-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to