About like

forum_thread

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: ... I've got a situation I do not understand. Assume code like this: @ Embedable public class EmbeddedThing { ... do is to modify the newly added thing by calling something like getFirstEmbeddedThing().setName("Yeah"). However, after comitting, the ...

 
forum_thread

Problem with Composite indices

Hi, I want to realize the following: I have 2 classes, one Client class which looks like: public class Client { @Index (unique = "true") private String name; } and a User class which looks like: ... following: I have 2 classes, one Client class which looks like: public class Client { @ Index ... name ; } and a User class which looks like: @ Index ( members = { "client" ...

 
forum_thread

Objectdb server out of heap space

I have had a server crash with the following stack trace: ... never end up in a situation where it runs out of memory like this.  This could be a serious problem for out deployment of objectdb ... never end up in a situation where it runs out of memory like this. Servers that run on Java JVM, such as the ObjectDB server, ...

 
forum_thread

Create simple index for a Id field

Hello, I just wanted to write another anotation to my key field so I can have a really simple index. This is the original code: @Entity public class ObjectDbEntity<Key,Value> implements DataItemProvider<Value> {         @Id     private Key key = null;     private Value value = null; and I just want my key to be indexed on my db, just like this: ... and I just want my key to be indexed on my db, just like this: @ Entity public class ... inserting the elements, but when it comes to read seems like the performance falls. I can understand that reading is a complex task, ...

 
forum_thread

Complex Schema Upgrade not working

Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy looked like this: class contact.Contact class customer.Customer extends contact.Contact class member.Member extends customer.Customer We have database records within each class type (Contact, Customer and Member). ... Simplied our source/original Schema/Class-Hierarchy looked like this: class contact. Contact class customer. Customer ... Customer and Member). Our new hierarchy looks like that: - The package "member" has been renamed to package "address" ...

 
forum_thread

listening on a particular IP aside localhost

I have being searching all around for how to do this but still no luck. I want objectdb to be able to listen in server mode to other connections from another machine where client is installed. I will like to have objectdb on machine A, while B,C, D can access the database in a using code like this emf = Persistence.createEntityManagerFactory("objectdb://192.168.50.56:8888/myapp6136.odb"); emf.createEntityManager(); ... from another machine where client is installed. I will like to have objectdb on machine A, while B,C, D can access the database in a using code like this emf = Persistence . createEntityManagerFactory ...

 
forum_thread

Search through collection for value using index

I have an entity that contains a java collection of a Long id of user entities that can modify it (many users can modify it).  I would like to be able to search for all entities that can be modified by a paticular user, since I will do this query often I would like to index it.  How would I tell ObjectDB to make an index and then use it in a query? I have yet to deploy this entity so I could do something besides a java collection if there is a better approach. ... can modify it (many users can modify it).  I would like to be able to search for all entities that can be modified by a paticular user, since I will do this query often I would like to index it.  How would I tell ObjectDB to make an index and then use ...

 
forum_thread

Custom Classloader: Issues with the Enhancer Agent

In my use case I generate some classes dynamically and load them with a custom classloader. The classloader is very standard and does something like this (simplified): ... The classloader is very standard and does something like this (simplified): public class MemoryClassLoader extends ... the Agent is enabled it is causing issues and I get errors like this: Java. lang . LinkageError : loader ( instance ...

 
forum_thread

Automatic schema evolution causes ArrayOutOfBoundsException

Hi, I did 2 modification to our schema. Our schema looks like this: class Entity     - List<String> permissions class ServiceProvider extends Entity     - String name class Airline extends Entity     - String name     - String iata ... I did 2 modification to our schema. Our schema looked like this: class Entity - List<String> ... removed the duplicated name field, the schema now looks like this: class Permission ( @ Embedded ) ...

 
issue

Exception in thread "ODB-StoreHandler-5094" java.lang.NullPointerException

Hi, ... wrapper which runs ObjectDb as a service.  It looks like ObjectDb is not catching all Exceptions, allowing them to bubble up into ... NullPointerExceptions are very concerning and we would like to ensure that no corruption is occurring in our data.  At the very ...