About fast

forum_thread

JPQL IN Operator

How can I use the standard JPQL IN operator with ObjectDB? This JPQL query works fine with EclipseLink / postgres but throws an exception in objectDB: select distinct dv.creationtime from DataValue dv where dv.capabilityId.capabilityId ==> in <== :capabilities and dv.creationtime >= :earliest and dv.creationtime <= :latest order by dv.creationtime ASC [ObjectDB 2.2.9] javax.persistence.PersistenceException Unexpected query token 'in' (error 752) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Error using query with MAX() function

I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the latest remark I get a internal error when the remark is larger than 1966 chars. Here is a test class and entity that reproduces the problem on my system. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Groovy JPA example

I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to do. The following script (which is one import and one statement) will open a database, run a query and print some results. --------------------------------------------------------------- import javax.persistence.Persistence ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

g when using SIZE in combination with date lower parameter

Hello, I have 2 entity types, which I want to query, ParserJob and Tag. Unfortunately there seems to be a bug if I use the lower date select: SELECT j.jobId, SIZE(j.tags) FROM ParserJob j WHERE j.dateCreated < :date This returns a SIZE(j.tags) of 0 Tags, but the only existing ParserJob has 1 Tag. If I run the query: SELECT j.jobId, SIZE(j.tags) FROM ParserJob j WHERE j.dateCreated >= :date I get the correct result (1 Tag). ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

NegativeArraySizeException on commiting a transaction

Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the DB and committing the transaction. I tried to repair the DB file with Database Doctor, but the same error is happening also on the fixed DB file. Btw. during fixing the DB file an Internal error was thrown (details here: http://www.objectdb.com/database/issue/285 ), but the fixing went on and created a new file. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Setting temp directory location in ObjectDB

HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); properties.setProperty("javax.jdo.option.ConnectionURL", fileName.odb); pmf = JDOHelper.getPersistenceManagerFactory(properties), JDOHelper.class.getClassLoader()); ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

'DROP TABLE' in ODB?

Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table' in ODB? ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Some technical questions

Hi, ObjectDB looks interesting. Have two technical questions... (1) what locking model does ObjectDB use? I.e. 2PL or MVCC? Do writers block readers? Do readers block writers? (2) what's the recommended usage for SAAS? One ObjectDB database per customer, or one ObjectDB database for all? Thank you, Andrej ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...