About JDO

forum_thread

Query fails with numerical values > 2^31

Hi ! I'm trying to execute the following query (from Java-code, also tried ObjectDB Explorer) delete from DataRecord p where p.TimeOfDeletion < 4147483648 This fails with "invalid numerical literal". The field p.TimeOfDeletion is of type long. As far as I know, the maximum value greater than 2^31 (Oracle: "The long data type is a 64-bit two's complement integer.") ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Is persistence version 2.1 supported?

Using the current version of persistence.xml leads to an error: ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Create simple index for a Id field

Hello, I just wanted to write another anotation to my key field so I can have a really simple index. This is the original code: @Entity public class ObjectDbEntity<Key,Value> implements DataItemProvider<Value> {         @Id     private Key key = null;     private Value value = null; and I just want my key to be indexed on my db, just like this: ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Unexpected exception (Error 990)

I don't know how to reproduce this error, because I don't know what exactly did trigger it, but I thought that it might help if I report it. It's maybe because I removed 2 Integer fields from an Entity class. After restarting ObjectDB server, it didn't appear anymore. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

ways to recover from DB curruption

Hi, I have a database file which was mistakenly opened by a different version of my entities model and is now not usable any more. When I try to open this file using explorer or even running the Doctor on it I get this exception: ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Relationships and tracking changes

3. Object relationship I try to create a 1->n relation (EBVerlag is 1 and EBUser is n) between two tables: Table "EBVerlag": ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Recommendation - concurrent access multiple class v

Hi! I've just started to architect a new system, stateless JSON API, which is expected to have very high load and to require more servers for parallel deployments (same app across multiple servers). I am considering using ObjectDB, because of its advantages and easy usage, but I'm afraid that it might get corrupted because the manual says that we must not access ObjectDB with different versions of a class. Let's take the following scenario: ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
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. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Accessing objects to make them available after EntityManager close?!

Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list of these instances. My problem is if I print out these instances before closing the em and returning the list, it works as I expected; if not, the function returns only one field correctly, another field is always Null. The details is as follows: ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Level 2 cache not hit in @ManyToOne

Hi! I have 2 entities: User and Item, both @Cacheable. Item has @ManyToOne private User user. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache, but not for its field "user". "user" is loaded each time from the DB (tested by changing data in explorer and reading in my app). "user" should also be taken from L2 cache, shouldn't it? Otherwise...it's a huge performance hit. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...