Home » Search

About database

131-140 of 200Refresh
FAQ
11

Is ObjectDB better than Object Relational Mapping (ORM)?

As noted above, using ObjectDB instead of a relational database and ORM combination is easier ... database is mandatory (e.g. as a result of a customer request or when a new application is developed for an existing old relational database). By using the Java Persistence API (JPA), you can develop
Manual
11

JPA Lifecycle Events

(added to the EntityManager). @PostPersist - after storing a new entity in the database (during commit or flush). @PostLoad - after an entity has been retrieved from the database. @PreUpdate ... the database (during commit or flush). @PreRemove - when an entity is marked for removal in
Manual
11

Running JPA Queries

(with getResultList) The following query retrieves all the Country objects in the database. Because multiple ... object reflecting the number of Country objects in the database: TypedQuery query = em ... on the database content. For example, the following query is expected to return a single Country object
Manual
11

Shared (L2) Entity Cache

on the client side - ObjectDB manages also several caches on the server side: Cache of database file pages ... is wider, since they exist per database and are shared by all the EntityManagerFactory and EntityManager instances of the same database - including on different client machines. Setting the Shared Cache
Tutorial
11

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO ... .transaction.annotation.Transactional; @Component public class GuestDao { // Injected database ... - for storing a new Guest entity object in the database. getAllGuests - for retrieving all the existing
Tutorial
11

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO ... .annotation.Transactional; @Component public class GuestDao { // Injected database connection ...  Guest entity object in the database. getAllGuests - for retrieving all the existing Guest objects
Tutorial
11

Step 3: Define an EJB Session Bean

Operations on the database will be performed by an instance of a session bean (EJB) class ... class GuestDao { // Injected database connection: @PersistenceContext private EntityManager ... two methods: persist - for storing a new Guest entity object in the database. getAllGuests
Tutorial
11

Step 3: Define an EJB Session Bean

Operations on the database will be performed by an instance of a session bean (EJB) class ... ; @Stateless public class GuestDao { // Injected database connection ... the database. getAllGuests - for retrieving all the existing Guest objects from the database. EJB classes
FAQ
11

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using ... ), which is designated to be used with relational databases, JDO is designated to be used with both relational and object databases. JDO is supported by many object databases, including ObjectDB
JPA Doc
10

JPA Exceptions

, an attempt to update the database with no active transaction is represented by: Database update ... to retrieve entity objects from the database. For example, when a required entity object is not found: or during query execution: The lock exceptions (above) may also be thrown during retrieval, if database