-
Book Overview & Buying
-
Table Of Contents
EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
In this section, we create EJB 3.0 entity beans from database tables. Right-click on the Model project node in the Application navigator and select New. In the New Gallery window, select Business Tier|EJB in Categories and Entities from Tables in Items. Click on OK. Next, we define the Persistence Unit for the entity beans. A Persistence Unit defines a data source, and other database persistence properties for creating and persisting entity beans. A persistence unit is defined in the META-INF/persistence.xml configuration file. Click on New. In the New Persistence Unit window, specify a persistence unit Name (em for example). Specify a JTA Datasource Name. Earlier we created a connection OracleDBConnection. A data source with JNDI name jdbc/OracleDBConnectionDS gets created by default when the connection is created. The data source name is of the format jdbc/ConnectionNameDS, in which ConnectionName is the variable; the connection name is what changes based...
Change the font size
Change margin width
Change background colour