Entering content frame

Background documentation Developing Entity Beans Locate the document in its SAP Library structure

Entity beans represent persistent data. Each instance of an entity bean represents a database table row.

When to Develop Entity Beans

You can develop entity beans, if:

·        Your application requires interactions with persistent data, represented in a relational database – storing, removing and changing the data in the database

·        You want to develop fine-grained persistent objects

·        The design of your application requires shared access to the persistent data

·        You want to develop a persistent component

·        You want to represent database relationships on object level

The Development Process

The process of developing an entity bean consists of the following steps:

...

       1.      Choose whether to use Bean-Managed or Container-Managed Entity Beans

       2.      Create the entity bean using the NetWeaver Developer Studio

       3.      Develop the source code of the entity bean. This includes developing:

...

                            a.      The component interface(s)

                            b.      The home interface(s)

                            c.      The bean class

                            d.      Any helper classes required by the entity bean

       4.      Create and edit the bean’s deployment descriptors

       5.      Create the database tables (you can create the database tables before developing your entity beans)

If your database tables already exist, you can omit this step.

       6.      Specify the O/R mapping

       7.      Compile and pack all EJB components in a JAR file

       8.      Pack the whole application in an EAR file

       9.      Deploy the application on SAP J2EE Engine

   10.      Start the application

 

 

Leaving content frame