4 Replies Latest reply on Mar 22, 2002 11:48 AM by Shailesh Dangi

    jaws create table

    Tomasz Newbie

      Why when I deploy new CMP bean with some primary key,
      jaws doesn't create primary key index.
      Posgresql 7.2 + jboss2.4

        • 1. Re: jaws create table
          Frank Langelage Master

          possibly you don't have
          <pk-constraint>true</pk-constraint>
          in your jaws.xml / standardjaws.xml.

          • 2. Re: jaws create table
            Tomasz Newbie

            possibly I don't have...
            Thanks.

            And another issue: how to force jaws to create indices on
            different (than primary key field) fields?

            • 3. Re: jaws create table
              David Jencks Master

              JAWS is not really intended to be a database design tool, the table creation is primarily to make it easy to develop your beans in tandem with a simple "default" rdbms mapping. The intention is that for production your dba (or you) will at least review the schema and make sure it has the appropriate indices, storage modifiers, column sizes, foreign keys, etc etc. Also JAWS has no ability to modify an existing table if you add/remove ejb fields/db columns - you have to drop the table and let JAWS recreate it.

              That being said I've often thought it would be nice to have it generate foreign keys for ejb relationships.

              • 4. Re: jaws create table
                Shailesh Dangi Newbie

                Persistence's PowerTier EJB Server does not only OR mapping but also takes care PK/FK relationships and automatically generates entity beans with appropriate methods. The version I worked with used to generate stubs and skeletons and used to take quite a long time inspite of using Jikes. Dynamic Proxies are something novel and I need to take a closer look.