About managed

forum_thread

Modifier operations

Hi, Today I was reading about different NoSQL databases. One of those database - MongoDB - has a very nice feature, especially for web applications - modifier operations. The whole trick for those operations is to change some value in object without pulling this object from database. So for example we have class: public class WebVisit { public String url; // key public int visitsCount; } As for now I have to pull this class from database: ... 19:53 If the list is managed as an inverse (mapped by) field - you should be able to use an update ...

 
manual

General Settings and Logging

Describes general configuration and logging of the ObjectDB Java object database for JPA and JDO. the ObjectDB General configuration section. The <general> configuration element specifies ObjectDB settings that are relevant to both the server side and the client side. The default configuration file contains the following <general> element: <general ...

 
manual

FROM clause (JPQL / Criteria API)

Explains how to use the FROM clause and JOIN expressions in a JPA/JPQL query. The FROM clause declares query identification variables that represent iteration over objects in the database. A query identification variable is similar to a variable of a Java enhanced for loop in a program, since both are used for iteration over o ...

 
forum_thread

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated(EnumType.STRING) @Column(nullable = false) @Index private MyEnumType enumField; And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call: ... 2015-04-07 11:34 I managed to reproduce the issue and found the @Enumerated(EnumType.STRING) ...

 
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: #1 2014-10-09 00:06 Hello, I just wanted to write another anotation to my key field so I can have a really simple index. This is the ...

 
forum_thread

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: ... the database and later each one of them is retrieved and managed separately. This is one of the consequences of not having ...

 
forum_thread

how to persist an object twice into two diff. collections of two diff. classes

ok my problem,    i persist a Squad Object into a Cup Object at the beginning, after i have to create and persist a competition object in which i have to put some of the already created/persisted squads. the final method looks like that: ... No need to call persist in order to update an already managed entity object. See the Updating Entity Objects page in the ...

 
issue

GC Memory

Hi there, I was hoping to get some support on ObjectDB regarding memory usage.  I received the following error.  Context for the error is found below. [2015-04-27 13:16:18 #20 server] ... its own load file and an odb file and all odb files are managed by a single object database server instance.  A large customer ...

 
forum_thread

Insert time increases as db grows.

Hello, #1 2012-12-18 22:22 Hello, I've just installed ObjectDB and done some tests. I'm inserting 22k of records like 10k it ...

 
forum_thread

Accessing objects to make them available after EntityManager close?!

Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list of these instances. My problem is if I print out these instances before closing the em and returning the list, it works as I expected; if not, the function returns only one field correctly, another field is always Null. The details is as follows: ... Closing the EntityManager changes the state of the managed object to detached , and in detached objects only fields that have ...