 11 | The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register ... above: Invokes the Enhancer to enhance the entity class and creates an EntityManagerFactory instance and stores |
 11 | The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register ... and creates an EntityManagerFactory instance and stores it as an application scope attribute in the servlet |
 11 | connection:
@PersistenceContext private EntityManager em;
// Stores a new guest ... - for storing a new Guest entity object in the database. getAllGuests - for retrieving all the existing |
 11 | :
@PersistenceContext private EntityManager em;
// Stores a new guest:
@Transactional ... .getResultList();
}
} The GuestDao Spring component class defines two methods: persist - for storing a new |
 11 | em;
// Stores a new guest:
public void persist(Guest guest) {
em.persist(guest ... two methods: persist - for storing a new Guest entity object in the database. getAllGuests |
 11 | :
@PersistenceContext private EntityManager em;
// Stores a new guest:
public void persist(Guest guest ... bean (EJB) class defines two methods: persist - for storing a new Guest entity object in |
 11 | the next tutorial step) - a new Guest entity object is constructed and stored in the database. All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute |
 11 | is constructed and stored in the database. All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute. Then the processing is forwarded to the JSP page |
 11 | Guest entity object is constructed and stored in the database. All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute. Then the processing |
 11 | that will be added in the next tutorial step) - a new Guest entity object is constructed and stored in the database. All the Guest entity objects are retrieved from the database and stored in the request's "guest |