ibm.com/developerWorks
Presented by developerWorks, your source for great tutorials
access them to demonstrate the features of XDoclet.
Here are the steps to complete this section:
1. Use
ejb.bean
tag to declare the EJB component s structure
2. Declare the names of the home and remote interfaces to be generated with
ejb.home and
ejb.interface
tags.
3. Specify class level Object Relation (OR) Mapping: Map the Entity to a table with
vendor specific tags
4. Specify finder methods for EntityBeans with
ejb.finder
tag
5. Mark the create method with
ejb.create
tag
6. Mark the primary key cmp field with
ejb.pk field
7. Mark the fields that are persistent
8. Set the vendor specific OR mapping for cmp fields
9. Add methods to an interface with
ejb.interface
10. Setup a relationship between two Entities with
ejb.relation
tag
11. Setup OR relationship mappings between two Entities
12. Working with Session beans
13. Adding EJB references from the Session to the Entity with
ejb.ejb ref
tag
14. Using the XDoclet Ant tag
ejbdoclet
to generate EJB support files
Page 28 of 49
Enhance J2EE component reuse with XDoclets






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

j2ee web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved