About size

forum_thread

Removing objects where ManyToMany relationships exist

Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany private Set<OtherEntity> setOfOtherEntities; public Set<OtherEntity> getOtherEntities() {     if (setOfOtherEntities == null) {       setOfOtherEntities = new TreeSet<OtherEntity>();     }     return setOfOtherEntities;   } ... removed as well, so, the TreeSet is reduced in size? Or do I end up having a number of null pointers in the Sets?  ... Maximum file size: 32 MB 0 ...

 
issue

ArrayIndexOutOfBoundsException on flush

The following exception was thrown when my app attempted to flush an objectdb database: ... The current theory is that this may be related to the size of the objects that are being stored. The process in test was working ok ... with the uncompressed data) and is help as a string. The size is certainly larger than 2k and is likely to be in MB. The second ...

 
forum_thread

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: ... Source) objectdb.java.util.ArrayList.size(Unknown Source) Player.toSFSObject(Player.java:45) <-- this is my code from here. I am trying to access the size of a List of an object I fetched from the database. ... The ... Maximum file size: 32 MB 0 ...

 
forum_thread

Using the wrong class to access a database

Hello, just starting to test ObjectDB and ran into a problem. I've created a small program to test the Point database described in the Getting Started section: ... ( "number of entries: " + results. size ( ) ) ; }   static void ... Maximum file size: 32 MB 0 ...

 
forum_thread

Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. ... a hint, that driver should fetch data in packages of given size until whole result set is iterated.  What I'm thinking ... Maximum file size: 32 MB 0 ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... - name = "oe.seq_unit_id" allocation - size = "1" /> </ id > </ ... Maximum file size: 32 MB 0 ...

 
forum_thread

Restrict by class in query

I have the following bit of code: ... a List<Folder> with two entries in it according to .size(). If I iterate using a foreach loop, I only get the folder. I can, ... Maximum file size: 32 MB 0 ...

 
forum_thread

Optimistic lock failed

Hi, I frequently see exceptions during development such as com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic lock failed for object com.example.MyEntity#3 (object has version 1 instead of 3) Could you please explain what this means, and what I can do about it. Thanks you, Carl     ... <database > <size initial = "256kb" resize = "256kb" page = "2kb" ... Maximum file size: 32 MB 0 ...

 
forum_thread

Query to search for common elements in two separate collections.

I'm trying to work out the most efficient way to build a query that can compare two collections for identical members. Something like: "SELECT o FROM Object o WHERE o.someCollection CONTAINS MEMBER OF :someCollection" Is something like this possible in the JPA spec? ... Maximum file size: 32 MB 0 ...

 
release

2.4.0

... Improved performance of collection and map size evaluation in queries. Fixed a critical bug in page caching ... ) in range queries. Fixed cached result size evaluation to include query arguments ( issue #91 ). Fixed ...