About Entity

131-140 of 200Refresh
Forum
9

Removing entity class

the 10 entities limit and got exception: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit Among the 10 entities in the project there are 2 entities I added long ... , but there are still in ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count
Issue
9

Unexpected error when loading all entity instance

Hi, when going through all entity instance to find orphaned entries we get the exception ... . Create a transaction and load 10.000 entity instances 2. Check for each entity instance ... remaining was 5GB so there is also no issue. I checked my logs and found the error: Entity is not found
Forum
9

Query results are not up to date for entities, not primitives

CriteriaBuilder to JPQL or from Entity to Primitive. What´s now? This could be the result of getting query ... operations cannot be used with queries that return values rather than entities, so these queries ... and may result in not being seen by queries: "Updating entity objects in the database using an UPDATE query
Forum
9

Access entity version before commit transaction

Hi, I have a usecase where I need to write the updated entity version to the database before commiting the transaction: 1. Change entity field e.g. from a to b 2. Create a change entry in database containing the new version of the entity So I need to access the version of an updated entity inside
Issue
9

Error during closing an entity manager

common frames omitted We have found a workaround. We have just enhanced the entities and then it works as intended. But why this case does not perform without enhanced entities? The exception may be due to having partial enhancement. Mixing enhanced entity classes with non enhanced entity classes in
Forum
9

Failing to read entities under load in multithreaded tests

to read entities from the database. I've isolated this issue to a fairly simple test case (please see attached eclipse project). I have some test entities listed below. When I run a load test that creates, reads and updates these entities in multithreaded application it sometimes fails to read
Forum
9

Multi-thread access to single EM's entities

If my entity classes have synchronized getters and setters, is it reliable for multiple threads to access a single EM's managed entities, as long as only the thread that created the EM interacts ... on the observable behavior of multithreaded code. When I run this example and examine the database, the entity
Forum
9

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity ... ). Can you explain the optimistic lock exception? It seems that the first level cache contains yet a dirty entity ... that can still show the unexpected behaviour (i.e. remove unnecessary bundles, entity classes, JPA
Forum
9

Repair broken references in entities

Hello, it is possible to recover an entity that has been removed automatically by CascadeType.Remove. After cascade remove the removed entity will be persisted with the identical primary key. Are all broken references in other entities on this removed/persisted entity repaired again? best regards
Forum
9

Update more than 10000 entities by an update query fails

Hello, following example tries to update more than 10000 entities by an update query ... (AccessType.FIELD) @Entity public static class MyModelElement { @Id int id ... .getTransaction().begin(); EntityA entity = new EntityA(1); em.persist(entity