About time

forum_thread

Dates

Question on dates. SQL doesn't seem to store timezone with dates (oddly). So, any best practises with ODB? 1. use java.util.Date 2. Milliseconds since January 1, 1970, 00:00:00 GMT 3. other?... the database it is automatically converted back to local time. Using (2) instead of (1) in your option list might be slightly faster ... are usually preferred because they represent date and time values better. If you want to store a timezone you may use a separate ...

 
issue

user defined backup file

We need a way to do a (online) backup to a user defined backup-destination. Maybe in that way: backupQuery.setParameter("targetfile", new java.io.File("/User/Backup/test.objectdb")); which creates a backupfile with the name 'test.objectdb" in the directory '/User/Backup/' or ... backup database-file (in a subdirectory with date and time information), then move it to the real backup directory and delete the ... parameter that you can use to replace the date/time pattern with your own selected sub folder name: Query ...

 
forum_thread

Enforce Second Level cache

In my application I have an entity with few transient Collection fields, these are constantly updateing very fast and access to those fields is needs to be fast too, thus I dont persist them (also this information is temporary and doesent need to be kept). I suppose that entity modified is the same that is cached in 2nd level cache. so that if i request that entity again I will get actually the same object with already ready state. Not sure about this but please leave your comment on this (is it really the same object kept in cache).... ... guarantee that this entity object is kept in cache all the time (there are not many of these entities), is it possible to enforce objectdb ... of that entities in 2nd level cache. Thanks for time edit ...

 
manual

ObjectDB 2.6 Developer's Guide

... is to make you productive with ObjectDB and JPA in a short time. Organization of this Guide This manual is ... issues in order to make the reader productive in a short time. After reading this guide you may want to extend your knowledge of JPA, by ...

 
forum_thread

Query and commit simultaneously

Is it possible to query and commit on the same persistence manager (i.e. same odb file) at the same time?... same persistence manager (i.e. same odb file) at the same time? edit ... so you can query and update the database at the same time using multiple threads. However, if all the threads share the same ...

 
forum_thread

Feature Request: Improved ObjectDB Explorer

ObjectDB explorer is mainly designed as database viewer, not editor. However, I think it can be improved to function as a capable editor also, and I think this will make ObjectDB an even better product. ... mean is that we have to write code that is different each time (or write some methods, but still varying input each time), and execute some main method to get blocks of data into the database, ...

 
forum_thread

Object belongs to another EntityManager - ERROR

Hi, From time to time we are getting following error in our project when trying to insert/update a record in database ... Hi, From time to time we are getting following error in our project when trying to insert/update ...

 
issue

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! ... database and do access the myEmbed property the first time with getMyEmbed() then we get an ArrayIndexOutOfBoundsException within ... get a Nullpointer exception in the same class though this time during a simple string-property setter???   Caused ...

 
api-jpa

javax.persistence.EntityManagerFactory

Interface used to interact with the entity manager factory for the persistence unit.(Interface of JPA)

 
forum_thread

ArrayIndexOutOfBoundsException at com.objectdb.o.ALS.c(ALS.java:89)

Hi all, I have created a packet grabber using JNetPcap. It creates a scala actor (java thread) for every packet grabbed which connect to an OpenDB database to add or update relevant entry's. Everything works fine until packets arrive with a time difference in the order of microseconds. Every scala actor opens a connection to the database, does what it needs to do, and then closes the connection. Something like: ... Everything works fine until packets arrive with a time difference in the order of microseconds. Every scala actor opens a ... When the traffic comes in bursts (packets arrive with a time difference in the order of microseconds) an ArrayIndexOutOfBoundsException ...