About Data Source

forum_thread

Error with org.springframework.data.jpa.domain.AbstractPersistable

I am working on a Spring Boot application. I want to integrate ObjectDB with Spring Data JPA. I refer to the http://www.objectdb.com/database/forum/860 to do the configuration. When I start up my application, I got below error. It seems like ObjectDB does not support a generic @ID in the super class. Is this a bug in the ObjectDB? It was totally fine when working with Hibernate or EclipseLink. ... Boot application. I want to integrate ObjectDB with Spring Data JPA. I refer to the http://www.objectdb.com/database/forum/860 to ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: ... id of 168,000. I've inserted 168,000 objects of dummy data with an importer. A subsequent 'submit' again of cleared up the ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Transaction isolation support?

I am looking at using ObjectDB for our new project, and its looking good so far. But I have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin   ... handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading. ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Cache usage

after a runtime of several weeks we are now analyzing the usage of the cache and so on. Looking at the heap dump we suspect that the cache is really used (see heap dump attached), the RAM allocated by objectdb is much less than we would expect. The database file has around 25 GByte of size and there is heavy traffic of around 400 clients communicating permanently via webSockets to the objectdb. The config is attached as well. The question is: is the cache really used ? ... have to be removed from the cache on every change to the data that may affect them. Query programs are not shown in the heap dump image, ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

EntityManager refresh problem

Dear Support, in the following code you can see a EntityManager.refresh() example. The example throws an assertion error with the following statement: Assert.assertEquals("entity 1", simpleEntity1.getFieldA()); In my opinion there should be no assertion error. I have tested the example with several objectdb versions (2.5.4, 2.5.6_06 and 2.5.7). Do you have an explanation for the assertion error? ... in this test is that refresh works by retrieving data from the database and in this test the refreshed object has not been ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

Hello! This query is working fine SELECT DISTINCT $1 FROM ChatHistoryItem $1 JOIN $1.recipient $2 JOIN $1.sender $3 WHERE ($2.id='22afeafe-363f-4397-8553-cc5688ba142d') OR ($3.id='22afeafe-363f-4397-8553-cc5688ba142d')  ORDER BY MAX($1.createDate) DESC   but this query returns an exception "com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV" SELECT DISTINCT $1 FROM ChatHistoryItem $1 JOIN $1.recipient $2  ... in defined as an embeddable class, and that may cause data duplication, since every ChatHistoryItem holds its own PersonalData ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Post-compilation enhancement vs Automatic Run-time enhancement

We are getting massively different results on field loading between explicit post-compile enhancement and automatic run-time enhancement. Testing exactly where and when the results are different for our demo web app is a very time consuming task, and very difficult, it means testing literally 100s of user interfaces (noting we get different results OUTSIDE THE JAVA SERVER FACES BACKING BEAN LAYER depending on the enhancement stragegy). Can you please explain how this could possibly be so ? ... aren't the 2 enhancement techniques giving identical data access results ? --- Webel IT Australia, "The ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Attempt to store an instance of a non persistable type java.net.URL

ObjectDB 2.3.6_16: The following works in EclipseLink+MySQL and EclipseLink+Oracle: ... by default: It is less portable since such data is not expected to be accessible by future versions of ObjectDB for .NET ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Dirty checking

Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: which objects, and which collections of objects, have been dirtied.     ... is a simple example, more complex views are composed of data from several different Entity clases. So, one way to do this, ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Embedded Database Replication

As we all know, embedded databases out perform server databases on every occasion. The problem with embedded databases is that theyre difficult to scale. If I were to create an entire enterprise web application within a single jar file using embedded tomcat and embedded objectdb I would run into problems trying to cluster the data. Is there a way to cluster embedded objectdb? Perhaps some kind of external replicator application that can be used by server administrators to ensure replication is optimal and healthy?... objectdb I would run into problems trying to cluster the data. Is there a way to cluster embedded objectdb? Perhaps some kind of ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...