About multiplication

forum_thread

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB loads that entity. Example code: @Entity @Table(name="Problems", schema = myDB") public class Defects  implements Serializable { ... ...  @OneToMany(mappedBy="problem") @OrderBy("seqRel, noteSeq") Set<Notes> notes; ... ... } #1 2011-04-21 05:17 When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of ...

 
manual

Numbers in JPQL and Criteria Queries

Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries....   + (addition), - (subtraction), * (multiplication) and / (division). ObjectDB also supports the ... ) ; // number - expression   // Multiplication (*) Expression javax.persistence.criteria.Expression ...

 
issue

NullPointer running multiple client against server

Hi, I'm running objectdb in server mode, config as it comes out of the box. In this case the database is being used as a queue with multiple seperate processes, each with multiple threads, writing messages. The message is split into a lightweight metadata message to allow fast searching and a more heavy weight data message. The put methods are shown below. The message is made up of an id, insert-time, priority and the payload is a large string. Bug Version: 2.2.7 Priority: Normal Status: Fixed Replies: 2 Type:  Bug ...

 
forum_thread

Recommendation - concurrent access multiple class v

Hi! I've just started to architect a new system, stateless JSON API, which is expected to have very high load and to require more servers for parallel deployments (same app across multiple servers). I am considering using ObjectDB, because of its advantages and easy usage, but I'm afraid that it might get corrupted because the manual says that we must not access ObjectDB with different versions of a class. Let's take the following scenario: #1 2014-02-09 10:15 Hi! I've just started to architect a new system, stateless JSON API, which is expected to have very h ...

 
forum_thread

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results. Is this a known limitation or a bug? Do you have any idea how to solve this problem? #1 2012-09-24 18:07 I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WH ...

 
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 ...

 
forum_thread

Acces the same DB with multiple users

I developed an application that needs 3 computers to acces the same odb file, unfortunately when I acces this file from any other computer than the one where I first generated the file (I'm using the server.exe) my queries result in nothing? Must something be changed to the config? Or should this work with no changes to the included config file? Thanks for the help, Marvin   #1 2016-03-03 13:26 I developed an application that needs 3 computers to acces the same odb file, unfortunately when I acces this fil ...

 
forum_thread

multiple LEFT JOINs do not work as expected

Hi, We have a hierarchical data set of organisations in the database, where each organisation stores a reference to it parent organisation. I'm trying to find all organisations 2 levels under a root organisation, e.g. where organisation.parentOrg is the root or organisation.parentOrg.parentOrg is the root. The query also contains a number of other predicates and it is built dynamically using Criteria API. It could be looking for other number of levels, 2 is just an example. The test query looks like this: #1 2011-12-16 05:41 Hi, We have a hierarchical data set of organisations in the database, where each organisation stores a re ...

 
forum_thread

CriteriaQuery .where() for multiple conditions

When using the below, there appears to be an OR condition:   #1 2014-08-10 16:02 When using the below, there appears to be an OR condition:   criteriaQuery. where ( cr ...

 
forum_thread

Issue with orphanRemoval and multiple EntityManagers

Hi, We have a problem where our database size grows over time more than expected. We've traced it down to the following issue: #1 2012-04-04 12:17 Hi, We have a problem where our database size grows over time more than expected. We've traced it dow ...