ObjectDB Database Search

1-50 of 200 results

Storing JPA Entities

Using Jakarta Persistence (JPA) You can store new entities in the database either explicitly by ... code stores an Employee entity class instance in the database: Employee employee = new Employee ... , and changes its state to Managed. The new entity is stored in the database when the transaction

JPA Entity Fields

that don't participate in persistence, so their values are never stored in the database ... -persistent) fields and has no data to store in the database. Persistent fields Every non-static non ... the @Transient annotation). Storing an entity in the database stores only its persistent state, not

JPA Persistable Types

Persistable types are data types that can be used for storing data in the database. ObjectDB ... can be stored directly in the database. Other persistable types can be embedded in entity classes as fields . In addition, only entity class instances preserve their identity and are stored

Defining a JPA Entity Class

To store Point objects in a database using JPA, you must define an entity class . A JPA entity ... Point class represents points in a plane. It is marked as an entity class, which enables you to store ... classes When you store an entity in the database, its methods and code are not stored

JPA Primary Key

Every entity stored in the database has a primary key. Once assigned, the primary key ... . Only entities have primary keys. Instances of other persistable types are always stored as ... class. Using primary keys for object clustering Entities are physically stored in the database

Database Schema Evolution

to the persistent fields of an entity class. New entities must be stored using the new class schema, and old entities, which were stored using the old class schema, must be converted to the new schema. Note ... to the new schema only when that entity is stored in the database again. An entity is converted

Managing JPA Entities

for many operations, including storing , retrieving, updating, and deleting database objects ... within an active transaction. When the transaction is committed, the owning EntityManager stores the new entity in the database. The Storing Entities section provides more details about storing objects

Database Explorer

an editor. New entities To create and store new entities, open the Create New Entities dialog box by using ... of objects to create. Click the Create and Persist button to create and store the new entities ... : The Encoding combo box is useful if strings in the database are not Unicode-encoded. ObjectDB stores

Index Definition

files. When an entity is stored in the database, every indexed field must contain either null or a value ... that are stored as part of the entity. Therefore, indexes on multi-part paths are allowed only when using embeddable classes, because the fields of an embedded object are stored as part of the containing entity

What are the main benefits of using ObjectDB?

. The ability to store ordinary objects in the database directly can simplify the code significantly ... ObjectDB is especially designed to store and manage graphs of objects efficiently. That can accelerate ... fields can be stored by ObjectDB simply as part of the containing object. Relational databases lack

JPA Runtime Tuning & Configuration

store mode Controls how data is stored in the cache: USE , BYPASS , or REFRESH . Scope Usage EntityManagerFactory Set the PersistenceConfiguration.CACHE_ STORE _MODE property when you create

CRUD Database Operations with JPA

Given an EntityManager instance, em , which manages the persistence context for the database, you can use it to store , retrieve, update, and delete objects. Storing new entities The following code fragment stores 1,000 Point objects in the database: em. getTransaction (). begin (); for (int i = 0

jakarta.persistence.EntityManager

for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. If the stored procedure returns one or more result sets, any result set is returned as a list of type Object[] . Parameters: name - name assigned to the stored procedure query in

Database Management Settings

, but you can specify an alternative path with the path attribute. Storing the recovery file and the database ... index is defined for an existing entity class that already has instances stored in the database

What is ObjectDB?

ObjectDB is an Object Oriented Database Management System (ODBMS). It provides all the standard database management services (storage and retrieval, transactions, lock management, query processing, etc.), but it uses an object oriented model to store and manage data. You can easily store ordinary

Chapter 2 - JPA Entity Classes

An entity class is a user-defined class whose instances can be stored in a database. To store data in an ObjectDB database using Jakarta Persistence (JPA), you define entity classes that represent your application's data object model. This chapter contains the following sections:

JPA Shared (L2) Entity Cache

updated with new data. CacheStoreMode . USE : New data is stored in the cache, but only for entities that are not already in the cache. CacheStoreMode . REFRESH : New data is stored in the cache

Online Backup

Because an ObjectDB database is stored as a single file in the file system, you can back it up by copying or archiving the database file. This method only works when the database is offline, meaning ... file is downloaded and stored on the client machine. Alternatively, you can specify the backup target

Chapter 1 - Quick Tour

is represented by an object with two int fields, x and y , that store the point's x and y coordinates. The program demonstrates CRUD database operations by storing , retrieving, updating, and deleting

jakarta.persistence.NamedStoredProcedureQuery

Implemented Interfaces: Annotation Target: Type Declares and names a stored procedure, its parameters ... to the persistence unit. The procedureName element is the name of the stored procedure in the database. The parameters of the stored procedure are specified by the parameters element. Parameters

JPA Lifecycle Events

). @PostPersist : Invoked after a new entity is stored in the database (during a commit or flush operation

JPA Attributes Annotations

. The embedded state is stored in the same table as the owning entity. Specifies a collection field or

JPA Metamodel Attributes

stored within the collection. An enumeration defining the specific type of collection interface used

JPA Queries

because it eliminates the need for casting results. Controls the execution of stored procedures (not applicable

Privacy Policy

to track the activity on Our Service and store certain information. Tracking technologies used

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package ...  a Main class that stores and retrieves instances of the Point entity class.

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window ... . The next step is adding a Main class that stores and retrieves instances of the Point entity class.

Step 4: Add a Servlet Class

the next tutorial step) - a new Guest entity is constructed and stored in the database. All the Guest entities are retrieved from the database and stored in the request's "guest" attribute. Then the processing

Step 3: Add a Context Listener Class

The Guest entities 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 ... the Enhancer to enhance the entity class, creates an EntityManagerFactory instance and stores it as

Step 3: Define an EJB Session Bean

{ // Injected database connection: @PersistenceContext private EntityManager em; // Stores a new guest ... : persist - for storing a new  Guest entity in the database. getAllGuests - for retrieving

Step 3: Define a Spring DAO Component

connection: @PersistenceContext private EntityManager em; // Stores a new guest: @Transactional public ... - for storing a new  Guest entity in the database. getAllGuests - for retrieving all the existing 

Step 3: Add a Main Class

In this step we will add a main class to the project to store and retrieve Point objects from the database: Right click the tutorial package in the [Package Explorer] window and select New Class ... = emf.createEntityManager(); // Store 1000 Point objects in the database: em.getTransaction().begin(); for (int i = 0; i

Step 3: Add a Main Class

In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste ... .createEntityManager(); // Store 1000 Point objects in the database: em.getTransaction().begin(); for (int i = 0; i

Step 3: Define a Spring DAO Component

connection: @PersistenceContext private EntityManager em; // Stores a new guest: @Transactional public ... - for storing a new  Guest entity in the database. getAllGuests - for retrieving all the existing 

Step 4: Add a Servlet Class

entity is constructed and stored in the database. All the Guest entities are retrieved from the database and stored in the request's "guest" attribute. Then the processing is forwarded to the JSP

Step 3: Add a Context Listener Class

The Guest entities 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

Step 3: Define an EJB Session Bean

EntityManager em; // Stores a new guest: public void persist(Guest guest) { em.persist(guest ... ) class defines two methods: persist - for storing a new Guest entity in the database. getAllGuests

Step 4: Add a Servlet Class

that will be added in the next tutorial step) - a new Guest entity is constructed and stored in the database. All the Guest entities are retrieved from the database and stored in the request's "guest" attribute

Step 4: Add a Servlet Class

and stored in the database. All the Guest entities are retrieved from the database and stored in

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 Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting  New Class . Enter  guest as the package name - use  exactly that case

Eclipse/JPA Spring MVC Web Tutorial

are stored in an ObjectDB database. Required Software For this tutorial you will need the following

Step 4: Run the Application

directory. Running the application again will use the existing database file to store an additional

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity, and all Guest entities are stored in

Step 4: Add a Controller Class

the next tutorial step) - a new Guest entity is constructed and stored in the database. Processing

Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields: x and y

NetBeans/JPA Web Application Tutorial

entities are stored in an ObjectDB database. Required Software For this tutorial you will need

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 Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Entity Class ... (or New Other... Persistence Entity Class and clicking Next ). Enter

Java EE Web Tutorial

is represented by a  Guest entity and all the  Guest entities are stored in an ObjectDB database

Step 4: Run the Application

the existing database file to store an additional 1000 objects. You can view the content of the database file

NetBeans/JPA Spring MVC Web Tutorial

are stored in an ObjectDB database. Required Software For this tutorial you will need the following