About Object Database

forum_thread

@SequenceGenerator and single id in whole database

Hi, I have a question about @SequenceGenerator. I have separate @SequenceGenerator in each of my model enitities, but it looks like id's are generated using only one, shared generator. Is there any other way to use separate generators for each entity, so that each entity uses its own sequence just like in RDBM?... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

internal object DB locking in an embedded multi threaded application

Hi, we are using Embeded objectDB 2.4.4_06 in a highly multithreaded concurrent manner and we have noticed a performance problem in our application that seems to be attributed to ObjectDb's internal locking. When profiling our app in JVisualVm we notice a large number of threads are blocked and when doing a threaddump we notice that they are all blocked in the same place: ... suggestions as to how we can improve / elviate this? our database files are between 100 and 500 meg when this occurs. It doesnt happen ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Finding an object by its datetime

SearchBookingByTimeStamp() { Calendar btime = Calendar.getInstance(); btime.set(2012, 10, 11, 7, 30, 00); //This time is already inserted, trying to find it /* My Query */ TypedQuery<Booking> query = em.createQuery( "SELECT b FROM Booking b WHERE b.btime = :btime", Booking.class) .setParameter("btime", btime, TemporalType.TIMESTAMP); } @Entity public class Booking { @Temporal(TemporalType.TIMESTAMP) Calendar btime; }   ... ObjectDB 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: ... 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 ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Query all objects that implements a given interface - is that possible?

Hi, I am trying query one of my DB - for all object types that implements a given interface. TypedQuery<Signal_Interface> query = em.createQuery("SELECT bk FROM Signal_Interface bk", Signal_Interface.class); I got the following error.  I am not sure it is possible to do it - Any suggestions would be appreciated. Regards, EKK ... Hi, I am trying query one of my DB - for all object types that implement a given interface. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Source control of database

Hi, I'm new with ObjectDB. I want to know how I can evolve my model, adding new fields, new classes, perform refactors between versions, etc... There is something like http://www.liquibase.org that can I use over ObjectDB? #1 2017-09-28 19:18 Hi, I'm new with ObjectDB. I want to know how I can evolve my model, adding new fields, new classes, ...

 
forum_thread

World database - Changing country ID

Hi, I am getting familiar with OpenDB as I am considering using it in some project. I opened Sample world DB in ObjectDB Explorer - and couldn't find my country, as it has invalid id ( ez instead of cz ). I changed the id of country to "cz". But when I try to find the country: SELECT c FROM Country c WHERE id = "cz" no results are returned. If i find it by name, I can see ID has changed to cz. However Country#ez is still displayed in the top. ... Changing the primary key of an existing entity object is not allowed and the Explorer should be fixed to prevent it. ... Regarding the primary key in the world example database - the data is derived from the CIA Factbook, in which the internal ...

 
issue

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
release

2.5.2

... #201). Fixed an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing ... when logging is disabled. Improved closing database time when recovery is disabled. Fixed ... Changed merge implementation (removed temporary object clearing). Fixed the Explorer to show null values in ...

 
forum_thread

Understanding Database max-threads objectdb.conf Settings Option

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   In the objectdb.conf file (attached to forum thread mentioned above), I set Database max-threads.  In the documentation, it was not completely clear to me if this setting controlled how many internal threads ObjectDB uses, or if ObjectDB is doing some sort of queue/locking whose depth is determined by this setting (and entries are per thread request). ... (attached to forum thread mentioned above), I set Database max-threads.  In the documentation, it was not completely clear ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...