About remove

forum_thread

New to Product & Having An Issue

Greetings ObjectDB Users! I'm new to the product, and I've setup a simple test after reading the tutorial, and I'm running into some issues with queries, specifically querying by primary key.   I have a domain object class Called Department, which has a member of type DomainId.  DomainId has two member fields:  String accountId and String objectId.  The following code shows these two classes.... ) . begin ( ) ; em. remove ( this . foundResult ) ; em. ... d : departments ) em. remove ( d ) ; em. getTransaction ( ...

 
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: ... ORDER BY r . startDateTime DESC If we remove the ORDER BY part, the query completes OK and returns the records from ... problem is related to the other as the query works if you remove the order by part. That is this query works: SELECT r FROM ...

 
forum_thread

Java 9 support

Hi,  is ObjectDB supporting Java 9 already ? If not when can we expect the support for it ? ... of packaged modules).  ObjectDB would likely either remove that dependency, or provide some correct module dependency directives ...

 
issue

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! ... Hmm getting closer.. it seems that when I do remove an enum property from Embed_A it works as well so it looks more or less ...

 
forum_thread

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity public class Entity_A {     (...)     @Embedded     List<Class_B> bList;     @Embedded     Map<String, Class_C> cMap; (...) } where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of embeddable class in entity. And what happens if I do operation like : ... entity.   My problem is - when i remove EntityA instance I would like to have removed all EntityB classes also ...

 
forum_thread

One transaction or two?

If I have a large number of objects to delete and then add to a PersistenceManager is it more efficient to do everything in one transaction or two? Currently my code looks like this: ... on the same code bit above. Whenever I have objects to add/remove from the database they are submitted to an ExecutorService task. Each ... more memory. Since you are asking about add/remove operations rather than read operation (in which the L1 cache is ...

 
forum_thread

Empty temporary dat files in the temp folder

Hello, We have questions regarding the pagesX.dat files in the temp directory. We detected a problem on a machine with ‘only’ 2GB free memory on disc drive C:/ because during using our Product the %temp%/objectdb_123... folder growth up to 2GB. And then we run into some following errors due to lack of memory. ... begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors rollback the ...

 
forum_thread

How to resolve 404 errors with Eclipse/Maven Spring MVC

I have created a project as guided by www.objectdb.com/tutorial/jpa/eclipse/spring/run. When I abandon eclipse and use the maven command line to deploy this Spring MVC web app to jetty and point my browser to localhost:8080/Guestbook/ it works as your tutorial says! ... use eclipse to single step thru the source code. Also, to remove the one syntax error that eclipse was giving me, I commented out the ... on the servers tab. Right click on Tomcat 6 server->add remove->move guestbook to the right hand "configured" pane. (6) ...

 
issue

Issue with UPPER ?

Hi, Assuming those queries which are all the same except the UPPER calls: ... Sorry, forgot to mention that if for Case (2) you do only remove the last OR (..) it works correctly again so I cannot simplify it ...

 
issue

Issue with DISTINCT Select

It is getting more and more frustrating :( We've introduced distinct select instead of regular selection in our code (no changes else) and suddenly receive invalid identifiers in queries exceptions in various queries. Here's the stacktrace: ... the way, why are you using fully qualified names? if you remove entity names from your @Entity tags you will be able to use ...