-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
The EJB 3.0 entity class is a non-abstract POJO class with implementations for the getter/setter methods, in comparison to the EJB 2.0 entity bean class, which is abstract with abstract getter/setter methods. EJB 3.0 does not require component and home interfaces. The entity bean class may implement a business interface, though is not required to.
In the EJB 3.0 specification, the EntityManager class is used to create, find, and update an entity bean instance. In EJB 3.0, deployment descriptors are not required and are replaced with metadata annotations. When deployment descriptors are supplied, their values override annotations. An entity bean is specified with the @Entity annotation. The table name, column name, and primary key column properties are specified with the metadata annotations listed in the following table:
|
Annotation |
Description |
Annotation Elements |
|---|---|---|
|
@Table |
Specifies the table used for entity bean persistence. |
Name (if the name element is not... |
Change the font size
Change margin width
Change background colour