About multiplication

forum_thread

Exception after update of indices of Entity class

Hello, I changed the index definition of an entity class from @Index()... to @Indices() and now I get the following stacktrace upon start: #1 2017-08-03 13:18 Hello, I changed the index definition of an entity class from @Index()... to @Indices() and now I get the ...

 
issue

NullPointer when accessing entity field

Hello, following exception occurs when using objectdb: Bug Version: 2.5.0 Priority: Normal Status: Active Replies: 3 Type:  Bug ...

 
forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. #1 2012-09-07 16:03 Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The ap ...

 
forum_thread

Fetching Collections Puzzle

I am working on a project where I need to travel through a massive graph of objects. One of the main entity is the Node which is shown below. class Node { Node parent List<Node> children Node rightSibling Node leftSibling int rank } I have the following issues/doubts #1 2011-04-23 23:08 I am working on a project where I need to travel through a massive graph of objects. One of the main entity is th ...

 
forum_thread

Weird behaviour with enhanced classes and embedded entities

Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a small sscce which reproduces the issue: #1 2014-07-30 11:27 Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries ...

 
forum_thread

ObjectDB's Database Doctor Incorrect Error Report

Am I reading this correctly?  It seems that Doctor is telling me that one of my objects is missing.  Looking at the database with ObjectDB's Database Explorer though seems to show that the reference to the object is good and that the object does indeed exist.   Output from Doctor Diagnose and Doctor Repair is attached.  So are the two databases and screenshots of Explorer showing the reference to the object and the existence of the object. #1 2016-08-13 16:33 Am I reading this correctly?  It seems that Doctor is telling me that one of my objects is missing.  Lo ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } #1 2013-03-18 14:27 Hi, I have objects of type A belonging to objects of type B, defined as follows: @ MappedSu ...

 
forum_thread

Remove an entity which attributes were changed - OptimisticLockException

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the removed entity. If this operations on the entity are executed in only one plugin, it works well. #1 2016-04-14 13:06 We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded ...

 
manual

JPA Metamodel API

Explains how to use the JPA Metamodel API to retrieve details on the types and attributes of the persistent object model. The JPA Metamodel API provides the ability to examine the persistent object model and retrieve details on managed classes and persistent fields and properties, similarly to the ability that Java reflection provides for general Java types. ...

 
manual

Setting and Tuning of JPA Queries

Explains various JPA query settings - result range, flush and lock. The  Query javax.persistence.Query JPA interface Interface used to control query execution. See JavaDoc Reference Page... and  TypedQuery javax.persistence.TypedQuery JPA interface Inter ...