About Data Source

forum_thread

Example database world.odb

Hello! Where can I find classes for example database world.odb? Thanks for the answer.   ... 2012-04-27 11:38 The source code of the relevant entity classes is attached. ... The attached program exports data from the World database to the standard output in JSON format. You ...

 
forum_thread

Set timeout for BatchQueryItr

Hello Support, For an unknow reason, some of my object query never finish ( deadlock maybe ).  My tomcat temp directory is full of "BatchQueryItr" files. I can't found the origin of the issue but i wonder if it's possible to put a timeout for too long query. Regards, Xirt ... sun.reflect.GeneratedMethodAccessor1518.invoke ( unknown source ) sun.reflect.DelegatingMethodAccessorImpl.invoke ( ... ) com.sun.proxy.$Proxy246.close ( unknown source ) edit ... files may indicate a complex query on a lot of data with no sufficient indexes. If there is a deadlock, please post a ...

 
issue

OutOfMemoryError, if close the entity manager

Hello, why this error occurs during close the entity manager?   ... Source) ~[na:na] at java.util.Optional.ifPresent(Unknown Source) ~[na:1.8.0_51] at ... there were pending database transactions to apply, and data had to be moved from a temporary file to main memory. The ...

 
manual

[ODB1] Chapter 2 - A Quick Tour

Demonstrates basic database programming using ObjectDB. ... strings "Hello World 0" and "Hello World 1". Program Source Code The program consists of a single source file, HelloWorld.java ... transaction. Lines 16-26 The data structure of this program is an ArrayList containing String ...

 
forum_thread

Slow performance on Mac

- This code is tested on Windows and Mac. Windows is working great, Mac is very slow (read is 11 seconds on Mac, and 100 milliseconds on Windows). - Application is using Spring Boot console application (for JPA implementation) - MacOS Sierra 10.12.3, Core i7 CPU, 16GB RAM, SSD drive java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)   Running sample jar: ... Running sample jar: - To generate data (write):     java -jar demo-0.0.1-SNAPSHOT.jar write /path/to/file.odb - To read data (write):     java -jar demo-0.0.1-SNAPSHOT.jar ...   Attached: - JAR file - Source code - Netbeans profiler traces (seems issue ...

 
forum_thread

Speed of queries that return many objects

Hi, I have a DB of 146MB - with 1_000_000 elements. Loading the contents (objectDB query in java) takes about 10sec. I am using a recent MacBook (SSD blabla - disk I/O speed is about 400MB/sec - according to blackMagicTest app for mac) - so I was expecting the query to take less than one sec (146/400 = 0.35sec.. + some overhead). I was wondering if this kind of speed is "normal", or if this is something I should investigate. Thanks EKK ... than you may expect and much slower than just reading the data from the disk. Using embedded objects or report queries (which return ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

@OneToMany(fetch = FetchType.LAZY) list is always null

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related to J2EE. parent.getChildren() returns null. Here is a simple example: Bean: ... // ... id private byte [ ] data ;   public ByteData ( byte [ ] ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
api-jdo

javax.jdo.spi.PersistenceCapable

A class that can be managed by a binary-compatible JDO implementation must implement this interface.(Interface of JDO)

 
tutorial

Step 2: Create a Project and a Report

Explains how to create an Eclipse report project for ObjectDB/JPA BIRT reports.... The next step is creating an ObjectDB data source . ...

 
forum_thread

retrieve without key?

hi, i'm completely new to objectdb. i do have apps running with db4o and perst. i have a db which has only a single model object which would be an entity in objectdb. i'm managing the object in java. i'm loading data from an external source. i use keys from that source. since i have a singleton i want to do something like "get * from entities" knowing there is only one. i've looked at the api and can't see an option to retrieve an object w/o using a key. can this be done? ... i'm managing the object in java. i'm loading data from an external source. i use keys from that source. since i have a singleton i want to ...