You will first build the data model portion of the application. The Java Persistence API (JPA) provides a POJO persistence model for object-relational mapping. The Java Persistence API wasdeveloped by the EJB 3.0 software expert group as part of JSR 220, but its use is not limited toEJB software components. It can also be used directly by web applications and applicationclients, and even outside the Java EE platform, for example, in Java SE applications.Enterprise JavaBeans (EJB) technology is the server-side component architecture for JavaPlatform, Enterprise Edition (Java EE) that encapsulates business logic. EJB technology enablesrapid and simplified development of distributed, transactional, secure and portable applications based on Java technology.The Java Persistence API is the standard API for the management of persistence andobject/relational mapping. It provides an object/relational mapping facility for applicationdevelopers using a Java domain model to manage a relational database. The Java Persistence APIis part of the Java EE platform. It can also be used in Java SE environments.In the tutorial, you implement a persistence model by developing Session and Entity beans.These beans use the EJB 3.0 annotations and JPA for model persistence.
•
EJB 3.0 entities represent persistent data from the database, such as a row in a customer table or an employee record in an employee table. Entities are also sharable acrossmultiple clients. You use the Entity Manager API to create, update, delete and query the persistence model.
•
Session beans perform a distinct, decoupled task such as checking credit history for acustomer.You will then create a master-detail form for viewing Departments and Employees information.Following this basic master-detail page creation, you will create an edit page for the selectedemployee.While developing and testing the application, you will use JDeveloper's embedded Java EEapplication server.Back to Topic List
Scenario
You need to create persistence objects for the DEPARTMENTS and EMPLOYEES tables. The persistence objects are implemented as Entity Beans. Default getter and setter methods arecreated for department and employee data. These methods are implemented as part of a session bean. Then you create a Master Detail JSF page based on Department and related Employees,and an Edit JSF page allowing the update of employee's data.Back to Topic List
Prerequisites
Before starting the tutorial, you should:
1.
Have access to or have installed Oracle JDeveloper (10.1.3.1.0 or 10.1.3.2.0) Production. Youcan download it fromOracle Technology Network .
2.
Have access to or have installed Oracle Database 10g (Release 2 or Release 1). You candownload it from Oracle Technology Network
Leave a Comment