About entities

131-140 of 200Refresh
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
Forum
9

@Entity saved in Tomcat session - problem

Hi, I have found a problem, when storing @Entity object in Tomcat session. When starting or ... is to create copy of @Entity class as normal POJO and use it to store in session. The problem ... on this? The exception indicates an attempt to serialize an entity object (when Tomcat stores the session before
Issue
9

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! We have an two entities, the first one is something like: @Embeddable class TestEmbed {...} and the second one: @Entity class TestEntity { private TestEmbed myEmbed = null; public TestEmbed ... of a managed object etc etc.). However It seems to happen only with an embeddable entity embedded
Forum
9

Entity name

created a class named EBResult which looks like this: @Entity(name="RESULT") public class EBResult ... library) I expected to see an object named "RESULT" due to class annotation @Entity(name="RESULT"). Instead I see following: 2.1. Why? Is the @Entity(name="RESULT") ignored by ObjectDB? 2.2
Issue
9

Entity Version History

ObjectDB manages automatic entity versioning (for optimistic lock purposes). Every entity object modification is reflected by a new version number. Naturally, previous values in the entity object ... to go back in time and view old versions (and old values) of entity objects. Future versions of ObjectDB
Forum
9

Find the error...JPA ENTITY HIBERNATE

.html       Entities:   package com.example.demo; import java.io.Serializable; import java.util ... ; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType ... ; @SuppressWarnings("unused") @Entity @Table(name = "user") public class user implements