About build

forum_thread

Grouping by date()

Hi, For some time now we can use date and time function in queries to extract part of date time (from documentation): YEAR({d '2011-12-31'}) is evaluated to 2011. MONTH({d '2011-12-31'}) is evaluated to 12. DAY({d '2011-12-31'}) is evaluated to 31. HOUR({t '23:59:00'}) is evaluated to 23. MINUTE({t '23:59:00'}) is evaluated to 59. SECOND({t '23:59:00'}) is evaluated to 0. ... timestamps got different date values. Please try build 2.3.5_01. ObjectDB Support ObjectDB - Fast ... 2011-12-22 15:01 New build works well. Thanks. edit ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... what is expected by JPA. Anyway, please try build 2.4.7_08. Your test should pass with ID set across the hierarchy, ... Point 2 is indeed a bug. Build 2.4.7_09 fixes it. Regarding point 1, this is not valid in JPA ...

 
forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: ... objects after field type change as invalid were removed in build 2.4.5_05. ObjectDB Support ObjectDB - Fast ... You may also try fixing the index with the Doctor of build 2.4.5_05. ObjectDB Support ObjectDB - ...

 
forum_thread

Spring 2.5 LocalContainerEntityManagerFactoryBean, no getSharedCacheMode()

I'm trying to setup Spring + JPA + ObjectDb in my test environment and having trouble with the following: <bean id="EnvDMSEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="envService"/> <property name="persistenceXmlLocation" value="com/awarepoint/persistence.xml"/> </bean> Here is the stack trace I get: ... 14:21 Please try build 2.5.1_06 that should silently ignore this specific exception. ... 2013-08-07 15:38 Build 2.5.1_06 now works great! Thank you very much for the quick build, ...

 
issue

JDO PersistenceManager.getSequence() returns null sometimes

When using JDO without annotations, database sequences are normally defined in the ORM file. Following discussion on the forum I was told that ObjectDB supports sequences if specified in the JDO file. Unfortunately, it doesn't seem to be supported consistently. It appears to work only in the situation that a new odb file has just been created AND something has been persisted to it. If nothing has yet been persisted, or if the odb file is not newly created, getSequence() returns null. Code to reproduce: ... ; factory. setConnectionURL ( "build/testcase.odb" ) ; PersistenceManager pm = ... 2013-03-18 15:41 Build 2.4.7_04 fixes this problem. Regarding the sequence names, the ...

 
issue

InternalException when querying indexed field using a list that contains duplicates

ObjectDB is throwing an InternalException in JdoQuery: ... 2017-10-25 07:54 Build 2.7.2_01 should fix this bug. ObjectDB Support ... 2017-10-26 14:15 Build 2.7.2_01 has a side effect that introduces another bug ( issue #311 ). ...

 
issue

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the remove of an entry from a @OneToMany collection is not possible. The following java code demonstrates the problem. The statement parentEntity.getChildEntityContainer().remove("01"); does not work with not enhanced JPA entities. ... int x ; } } Build 2.6.0_04 includes a fix of this issue. ObjectDB ... sorry. Somehow the fix has not been integrated into that build. Please try build 2.6.1. ObjectDB Support ...

 
issue

InternalException when using MEMBER OF on a large list in a query

Hello, we get when executing a query with MEMBER OF on a large list the following InternalException: Caused by: com.objectdb.o.InternalException: merge2 com.btc.ep.coverage.bl.internal.dmos.CoverageRecordImpl:null => merger[2850057]-missing:223 at com.objectdb.o.PBI.B(PBI.java:124) at com.objectdb.o.PBI.q(PBI.jave:97) at com.objectdb.o.OBI.Vp(OBI.java:244) (... more see attached Image) Our query looks like this: ... to understand and fix the issue without this help. Build 2.6.3_04 should fix it. The issue is caused because of a bug in ... queries can fail with versions of ObjectDB before the new build. Note that although the new build fixes the exception - storing ...

 
forum_thread

Verify Error with Java 1.7

ObjectDB enhanced classes fail when compiled to Java 1.7 [ObjectDB 2.2.9_08 Enhancer] 28 persistable types have been enhanced: ... com.vaisala.jx.db.gdm.model.SourceType stack trace from jUnit test ... from 1.6 to 1.7, change compiler to 1.7, clean, build and deploy to GF - see error as below: Caused by: ... Thank you for this report. Please try build 2.2.9_10 that should enhance correctly Java 1.7 class files. ... Unfortunately the Enhancer fix was broken. Build 2.2.9_12 fixes it and in addition also applies the new addition only to ...

 
forum_thread

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

Hi, we are using ObjectDB 2.5.4_04 on Linux. Our application, which uses ObjectDb as a DB, exposes a Java RMI interface which allows remote RMI clients to run JPQL queries on the DB. The application internally runs SELECT NEW ... queries. For example: ... Failed to build result of type 'NEW com.arunta.base.db.FileNameDTO(r.id, ... Caused by: com.objectdb.o.UserException: Failed to build result of type 'NEW com.arunta.base.db.FileNameDTO(r.id, ... 2014-06-02 09:06 Build 2.5.5_06 includes a fix for this issue. Thank you for your report. ...