Editing module-wide nodes Expand the relationship node you (Web hosting bandwidth)
Editing module-wide nodes Expand the relationship node you just created to see the Relationship Roles node and expand this node to see two relationship role nodes. Each relationship you define is a relationship between two entity beans, so you ll use two Relationship Role pages to define the relationship, one for each bean. Double-click the first the relationship role node to see the first Relationship Role page: Name: Specify a meaningful name for this relationship role. Multiplicity: Relationships can be one to one, one to many, many to one, or many to many. Use the drop-down arrow to select either One or Many to begin describing how this relationship role will relate to the second relationship role you define. For example, your database might keep multiple invoices for each customer. If you were defining the relationship between a Customer bean and an Invoice bean, you would choose One as the Multiplicity value for the customer role and Many as the value for the invoice role. Cascade Delete: Checking the Cascade Delete check box indicates that you want the row(s) of the table to which the second relationship role refers to be deleted when the row referred to in this relationship role is deleted. Description: Use the Description field to explain the place of this relationship role in the relationship. Relationship role source fields EJB Name: Use the drop-down list to select the entity bean in the EJB module that is the first part of the relationship. Description: Provide a description of the entity bean. CMR field Name: Specify the field in this entity bean that links to the second entity bean and therefore establishes the relationship. Type: Use the drop-down list to specify whether the getter method of the CMR field returns a Collection or a Set. Description: Describe how the CMR field you have selected is used in the relationship. 134 Developing Applications with Enterprise JavaBeans
Try discount web hosting services, our team’s aim is to offer the best possible web hosting services, at the lowest possible price.