About member

forum_thread

java.lang.NullPointerException when using ORDER BY

We are using ObjectDB 2.5.1_04. The following query causes an internal null pointer exception: SELECT r FROM RecordingMetaData AS r WHERE ((r.mapToCli != '192.168.10.200:9085' AND r.callDirection == 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK and returns the records from the DB, but obviously not in order. Here is the stack trace of the exception: ... NullPointerException. Note that r.startDate is also a Date member like r.startDateTime.   ... problem if a run a query where the ORDER BY filed is not a member of any index. It just happens that startDateTime is not a member of any ...

 
forum_thread

Internationalization

What would be a good way to implement internationalization with ObjectDB? Let's say we do have a product catalog and we need to provide category and product data internationally. With a relational database we most probably would have two tables, one for locale neutral information, i.e. Product with fields SKU, price, etc. and another one for locale information only, i.e. ProductLocale with fields name, description, etc. #1 2014-06-11 20:03 What would be a good way to implement internationalization with ObjectDB? Let's say we do have a prod ...

 
api-jdo

FetchGroup.ALL

For use with addCategory and removeCategory calls.(Static Field of javax.jdo.FetchGroup)

 
api-jpa

in(values)

Create a predicate to test whether the expression is a member of the argument list.(Method of javax.persistence.criteria.Expression)

 
forum_thread

Failing to read entities under load in multithreaded tests

Hi, We are experiencing an issue in our application that only occurs under load - we sometimes fail to read entities from the database. #1 2012-03-17 08:11 Hi, We are experiencing an issue in our application that only occurs under load - we sometimes fail to re ...

 
forum_thread

100% CPU when using multiple BETWEEN

Hi, we are evaluating ObjectDB 2.5.1_03 in embedded mode. We have a DB of about 2800 instances of a class that has two java.lang.String members: toExtension and fromExtension. There are other members in the class, but not relevant to the problem.   A query like this cause the java process to start running at 100% CPU (endless loop) and it never recovers: #1 2013-07-17 03:49 Hi, we are evaluating ObjectDB 2.5.1_03 in embedded mode. We have a DB of about 2800 instances of ...

 
api-jdo

Key.mappedBy

Name of a member in the value class where this key is stored.(Annotation Element of javax.jdo.annotations.Key)

 
api-jdo

Persistent.serializedKey

Whether the keys of this member are serialized.(Annotation Element of javax.jdo.annotations.Persistent)

 
api-jdo

Persistent.dependentElement

Whether the elements of this member are dependent.(Annotation Element of javax.jdo.annotations.Persistent)

 
api-jpa

isNotMember(elem, collection)

Create a predicate that tests whether an element is not a member of a collection.(Method of javax.persistence.criteria.CriteriaBuilder)