5 Replies Latest reply on Nov 7, 2006 10:07 AM by chl-cert

    CRUD

    chl-cert

      Can any one send me the create table commands for the seam crud example

      city -> envents

      I am not able to make a reverse engeneering from a one to many reference

        • 1. Re: CRUD
          abchilla

          Hi,

          i am also facing problems with the CRUD example, as i posted in http://jboss.com/index.html?module=bb&op=viewtopic&t=94106

          Does the inserting work, or do you also become the same errors?

          [/url]

          • 2. Re: CRUD
            pmuir

            Just use

            <property name="hibernate.hbm2ddl.auto" value="create-drop" />
            in your peristence.xml so that the tables are automatically created by hibernate

            • 3. Re: CRUD
              chl-cert

              I have the problem that I don't have the tables in database, and so I cant test the reengeneering.

              Can you send me the create table commands with the foreign key constraints?

              • 4. Re: CRUD
                pmuir

                No. Hibernate will create the tables for you if you use create-drop (and of course the user has permission to create tables).

                • 5. Re: CRUD
                  chl-cert

                   

                  "petemuir" wrote:
                  No. Hibernate will create the tables for you if you use create-drop (and of course the user has permission to create tables).


                  But the reengeniereing for the seam crud application works out of the mysql database schema -> Or am I false