ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
111

Update more than 10000 entities by an update query fails

Hello, following example tries to update more than 10000 entities by an update query. But only the first 10000 elements are updated. What's wrong? public class updateMoreThan10000Elements ... .setFlushMode(FlushModeType.AUTO); { String query = "UPDATE " + MyModelElement.class
95

Updating Entities

with Entities not sending their updates to each other. I have two Entities in question at the moment ... . However, once a change has been made to paygradeDB after this visual load - the Employee table refuses to update ... also know that my code handles updating a table accurately when the Overview controller is visible
86

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

NEW ...) and UPDATE JPQL queries on the DB via the RMI interface. What we noticed is that once we UPDATE a record from the client (via the RMI interface), all SELECT NEW ... queries ... via RMI after the update. For example SELECT COUNT(*) ..., or SELECT r FROM ... all work fine. DB Doctor
86

Bulk update of embedded entities in linked list

Hi, I'm trying to do a bulk update of a column in an embedded entity, but I end up with a query ... . Example: int updateCount = em.createQuery( "UPDATE EntityA a " + "SET a.EntityBList.Column1 = :value ... " exception. How can I do update statements like that? Kind Regards, Roland r.steber Roland JPA Update queries
84

Cannot save or update entity on Spring App

update() { return em.createQuery("...").executeUpdate() > 0; } } While the fetching ... , nor it refreshes with its new id. And the update method fails because of this: [ObjectDB 2.8.0] javax.persistence.TransactionRequiredException Attempt to run update query when no transaction is active [PMImpl
24

CRUD Operations with JPA

Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove).
24

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
19

Locking in JPA

update collisions resulting from simultaneous updates to the same data by two concurrent users. Locking ... that has to be updated or deleted is checked. An exception is thrown if it is found out that an update is being performed on an old version of a database object, for which another update has already been committed
17

JQL-Update Queries fails with activated L2-Cache

When using JQL-Update Queries it is basically not working without calling entityManager.clear ... a container the updated Entities. Scenario 1: Disabled L2 Cache, updating elements using UPDATE-Query ... database - Actual result: No changes are visble. Scenario 2: Disabled L2 Cache, updating elements using
16

Running JPA Queries

other case. In addition, the Query interface defines a method for running DELETE and UPDATE queries: Query.executeUpdate - for running only DELETE and UPDATE queries. Ordinary Query Execution ... , they have to be caught and handled. DELETE and UPDATE Query Execution (with executeUpdate) DELETE and UPDATE queries

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support