About run

forum_thread

pesimistic Lock semantic

Hi   I have tested pesimistic lock and the result was for me unexpected. In the first transaction i modified one object and in the second transaction i wanted to the same and  I got an exceptopn that lock could not be granted, quite nice but in that moment I wanted commit the first transaction and I also got lock exception. this the test:   public void testPesimisticLock() {   PersistenceManager pm1 = null;   PersistenceManager pm2 = null; ... guess - but I think that you should have a problem if you run this code without enhancement. JDO (unlike JPA) requires enhancement to ...

 
forum_thread

Class loading problem with private packages in OSGi environment

Our Business Objects are the JPA entities. We develop our product domain driven. This means we have several domains. Each domain is split into business layer and persistence layer (others are not relevant here). Per domain and per layer, we have an OSGI bundles. The business layer should have no dependency down (an exception is the dependency to the ObjectDB for the enhanced entities).  The persistence Layers have a dependency to the business layer and to the central DataAccess Layer.... (error 361) at com.objectdb.Explorer$1.run(Explorer.java:57) at java.awt.event.InvocationEvent.dispatch(Unknown ... Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native ...

 
release

2.0.0

Release date: 2010-09-26 Download (3.39 MB) Binary:  objectdb-2.0.0.zip ObjectDB 2 is already in use in production in several applications and is ...

 
manual

Date and Time in JPQL and Criteria Queries

Shows how date and time can be used in JPQL queries.... execution to reflect the date and time when the query is run. Functions for extracting date and time parts are also available in ...

 
forum_thread

Conditional Selection

I have an Employee class that holds... private String firstName = "-"; private String middleName = "-"; private String lastName = "-"; I do not require that an Employee's middle name be provided so when I use... SELECT firstName + " " + middleName + " " + lastName FROM Employee     ORDER BY lastname, firstname, middleName I may end up with the result list of... #1 2017-07-26 20:05 I have an Employee class that holds... private String firstName = "-"; private String middleName = "- ...

 
forum_thread

java.io.IOException: Illegal seek

The Exception throws between whiles, is a bug?(ObjectDB 2.3.4_05) #1 2012-01-31 02:08 The Exception throws between whiles, is a bug? ( ObjectDB 2.3.4_05 ) [09:44:46.992] Caused by: co ...

 
forum_thread

Connection is closed Caused by: java.io.EOFException

I am getting this exception on a regular basis, after a period of time of repeating the same code execution.  I don't understand why.  I restart the DB server and my code works again for another period of time until same exception is encountered again.  I cannot pin down a pattern e.g. after a certain period of time,  because the time  periods between exceptions are not regular, although frequent.  Any test case  I use will pass most of the time but will fail after an undetermined period. ... after use in a finally{} clause  Have I run out of connections? Or is there something obvious that I am not seeing? ... com.objectdb.o.SMR.n(SMR.java:166) at com.objectdb.o.TOL.run(TOL.java:115) at com.objectdb.Server.runCommand(Server.java:194) at ...

 
issue

Exception Failed to read from file

Hello, we have found several these exceptions in our log ... ysoft.sqpro.queue.SecuredPrintQue.run(SecuredPrintQue.java:350) Caused by: com.objectdb.o.UserException: Failed ... Is there any workaround? We need to finally run our application without futher problems. Thanks Marta ...

 
forum_thread

Index on map key

Is there a way to create an Index with @Index on the key of a map? #1 2013-10-02 06:10 Is there a way to create an Index with @Index on the key of a map? ...

 
forum_thread

CASE WHEN...THEN...ELSE...END not working using JPQL/JDOQL

When I try to use the "case...when...then...else...end" like in the following query "SELECTCASE WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g", I get the issue: Unexpected query token 'CASE' SELECT  ==> CASE <==  WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g Have I mismatched something or is it an issue with ObjectDB? Anyone could help me on how to use the "case" in JPQL? Thank you in advance. #1 2016-07-29 06:59 When I try to use the "case...when...then...else...end" like in the following query "SELECTCASE WHEN g.name="a" T ...