Home » Search

About new

41-50 of 200Refresh
Tutorial
12

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... ) and selecting New > Entity Class... (or New > Other... > Persistence > Entity Class and clicking ... name - use exactly that case sensitive package name. Click Next to create the new entity class. In
Tutorial
12

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... ) and selecting New > Entity Class... (or New > Other... > Persistence > Entity Class and clicking ... name - use exactly that case sensitive package name. Click Next to create the new entity class. In
Tutorial
12

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Servlet ... package name should be guest. Click Finish to create the new servlet class. Now replace the content
Tutorial
12

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Servlet ... package name should be guest. Click Finish to create the new servlet class. Now replace the content
Manual
12

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking the persist method ... an instance of the Employee entity class in the database: Employee employee = new Employee("Samuel ... state is New. An explicit call to persist associates the object with an owner EntityManager em
Manual
11

Database Management Settings

and page size settings: The initial attribute specifies an initial size of every new database file ... simultaneously. When the specified maximum is reached - new requests are pending until previous requests ...    The element specifies how new defined
Tutorial
11

Step 4: Add a Servlet Class

] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create the new servlet class. Now replace the content of the new source file with the following code: package guest
Tutorial
11

Step 4: Add a Servlet Class

] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create the new servlet class. Now replace the content of the new source file with the following code: package guest
Manual
10

Retrieving JPA Entity Objects

entity object is not found in the persistence context a new object is constructed and filled with data that is retrieved from the database (or from the L2 cache - if enabled). The new entity object ... . Notice that construction of a new managed object during retrieval uses the no-arg constructor
Manual
10

Shared (L2) Entity Cache

the persistence context, rather than a new instantiated entity object. The scope of the persistence context ... the database and added to the shared cache. On commit - new and modified entity objects are added ... .persistence.cache.storeMode The  "javax.persistence.cache.storeMode" property specifies if new data