Home » Search

About store

41-50 of 200Refresh
Tutorial
12

Step 3: Add a Context Listener Class

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
Tutorial
12

Step 3: Define a Spring DAO Component

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
Tutorial
12

Step 3: Define a Spring DAO Component

: @PersistenceContext private EntityManager em; // Stores a new guest: @Transactional ... .getResultList(); } } The GuestDao Spring component class defines two methods: persist - for storing a new
Tutorial
12

Step 3: Define an EJB Session Bean

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
Tutorial
12

Step 3: Define an EJB Session Bean

: @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
Tutorial
12

Step 4: Add a Servlet Class

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
Tutorial
12

Step 4: Add a Servlet Class

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
Tutorial
12

Step 4: Add a Servlet Class

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
Tutorial
12

Step 4: Add a Servlet Class

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
Manual
12

Updating JPA Entity Objects

Modifying existing entity objects that are stored in the database is based on transparent persistence, which means that changes are detected and handled automatically. Transparent Update ... can be cascaded from all the entity objects that have to be stored in the database, including from