The ejb-jar.xml visual editor lets you edit the general for an EJB module. You open the editor by expanding the project's Configuration Files node in the Projects window and double-clicking the ejb-jar.xml node . The Enterprise Beans section of the General view contains a section for each of your EJB module's enterprise beans.
Each entity bean that uses container-managed persistence (CMP) has a CMP Select Methods section. Select methods are a type of query method similar to finder methods, and, like finder methods, they use EJB QL. A select method is more flexible than a finder method and is visible only to the bean class; therefore, a select method can be used only by methods of the bean class. A select method inherits the transaction context of the method that calls it. In addition to returning a bean or a collection of beans, a select method can also return the value of a field.
You can add, remove, and edit select methods in the CMP Select Methods section. For each select method, specify the following:
When you add a select method to a bean, the IDE adds the method signature to the bean class and registers the select method to the EJB module's deployment descriptor.
Entity beans also have the following sections in the ejb-jar.xml editor: