About remove

forum_thread

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, the same query was getting executed within an seconds and now the same is taking around 40 seconds in object db 2.x I have build the query using the follwoing Query query = persistanceManager.newQuery("LogEntryAttrebuteImpl.calss", "typeIndexes.contains(this.type) && logEntryIdList.contains(this.logEntryId)"); ... the second definition (without the index). Try to remove the second definition and follow the steps that you described. ...

 
forum_thread

Running ObjectDB on a node that does not have internet connectivity

Upon initializing our ObjectDB database on a node that does not have a connection to the outside internet, we get the following exception. Any idea what would be causing this?... 17:07 Yes, just remove that DOCTYPE declaration and it should work. ... the internet just fine at the time. The advice to remove the DOCTYPE line worked for me too. David   ...

 
forum_thread

EntityManager JPA or JDO impl and different behavior

Hi, I have an issue with the EntityManager. My persistance XML looks like: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> ... 3. In eclipse, change your java build path to remove the M2_REPO dependency for objectdb jar and instead add a dependency to ...

 
forum_thread

mapping file is not being loaded

Hi, I am evaluating ObjectDB by using it with an in-house developed library in order to prototype its capabilities / performance. I am having a problem in that the in-house library in question reads a simple configuration file to determine available persistence units, and then bootstraps them using the JPA Persistance.createEntityManagerFactory() method and passing in the persistence unit name (again, obtained from the configuration file ). #1 2012-06-22 15:00 Hi, I am evaluating ObjectDB by using it with an in-house developed library in order to prototype its capabilitie ...

 
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

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

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

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

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

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