Entity Bean Deployment Settings

The Entity Bean Deployment Settings dialog box allows you to specify the deployment settings for an entity bean with container-managed persistence.

  1. If you want the database table to be created automatically during deployment, select the checkbox labelled "Create Table on Deploy." The table name will be the name of the entity bean class plus the word Table, enclosed in quotes. For example, for the AccountEJB class, the "AccountEJBTable" name is used. Note that the quotes are part of the table name.
  2. If you want the database table to be deleted automatically when the application is undeployed, select the checkbox labelled "Delete Table on Undeploy."
  3. To generate the default SQL queries for the bean's methods click Generate Default SQL.
  4. To specify the JNDI name of the database, click Database Settings.
  5. To view the SQL and queries for a method, select an entry from the Method list.
  6. To define the queries for the bean's finder and select methods, click Edit.


Copyright 1999-2001 Sun Microsystems, Inc. All Rights Reserved.