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

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

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

ObjectDB - JPA Object Database for Java

  Boost your application database performance. Database performance is critical as it is the bottleneck in most applications. ObjectDB is extremely fast and much faster than any other JPA solution. Using a relational database management system (RDBMS) to store and retrieve Java objects

JPA Core Types

for entities within the persistence unit. This determines which entities are stored in the second-level

[ODB1] Chapter 6 - Persistent Objects

content, or a transient object, i.e. not related to any database. Storing Objects Explicitly ... object becomes persistent during an active transaction, its content is automatically stored in ... . The makePersistentAll( ... ) method stores all the elements in the specified collection or array in the database

[ODB1] Chapter 2 - A Quick Tour

the program is run another string is stored in the database and all the strings in the database are printed ... - construct and store a new list: 24 list = new ArrayList(); 25 Utilities.bind(pm, list, "Hello World"); 26 ... object database, can simply store a memory data structure in the database as is. If the database is not

[ODB1] Chapter 3 - Persistent Classes

Persistent Classes are user defined classes whose instances can be stored in a database using JDO ... ). 3.2  Persistent Fields and Types Storing a persistent object in the database does not store methods and code. Only the state of the object as reflected by its persistent fields is stored

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

[ODB1] Chapter 9 - ObjectDB Explorer

is empty. A new persistent class is automatically added to the database when its first instance is stored ... automatically when the application stores an object with the new schema in the database ... objects and store them in the database, open the "Construct New Persistent Objects" dialog box using

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

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click the project node (in the [Package Explorer] window), select  New Source Folder , enter src/main/java as Folder Name and click Finish . Open the [New Java Class] dialog box, e.g. by

Step 4: Add a Controller Class

is constructed and stored in the database. Processing is forwarded to a JSP page

Eclipse/JPA Java EE Tutorial

by a Guest entity and all the Guest entities are stored in an ObjectDB database. Required Software

Eclipse/JPA Web Application Tutorial

and all the Guest entities are stored in an ObjectDB database. Required Software For this tutorial

ObjectDB 1.0 Manual

and transactions in JDO. Chapter 6 - Persistent Objects Shows how to store , retrieve, update