
EJB
™
Development Using Borland
®
JBuilder
®
8 and BEA WebLogic Server
™
7.0
25
Figure 15: JBuilder Database Schema Provider—to create entity beans from database
schema
Generate an entity bean
Expand JDSDataSource from the JBuilder structure pane to see the list of tables available in
the database. You can create entity beans visually just by right-clicking a table name and
clicking Create CMP 2.0 Entity Bean or Create BMP Entity Bean.
For this exercise, let’s create a CMP 2.0 Entity Bean for EMPLOYEE Table. Right-click
EMPLOYEE from the structure pane and click Create CMP 2.0 Entity Bean. This creates a
Visual Employee Entity Bean in the editor pane.
Komentarze do niniejszej Instrukcji