About object

forum_thread

ObjectDB JDBC to Object compiler

Hello , some products developed by JDBC , So we cannot use ObjectDB. My idea is , you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from Java Code. It can be Intellij or Eclipse IDE plugin for ObjectDB.   It dedects strings and combinations like "insert into ObjectT values('hasan','test')" to ObjectT obj = new ObjectT("hasan","test"); em.persist(obj);   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

enhanced object .. NOT enhanced

Hi  I think I have found a bug :  - I have enhanced a class but when I tried to persitst it I got an error that this class has not been ehanced (what is important, this class has _odbTracker field added) So, instead of DB write a standard serialization mechanizm is triggered. Finnally we get an OutOfMemory expeption. b ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
issue

Sort of very large objects - out of memory

The attached test is failing with an out of memory exception when running with -Xmx512m It performs the following actions: 1) Create 5 persist threads which create and persist a large object in a loop 100 times each 2) Create 5 get threads which read 100 objects each in a loop based on object creation time and priority The message size should be around 1mb so I think there should be around 11mb of "live" data in play at any time. The objectdb cache settings are low in the config - database section is below for reference. ... Create 5 persist threads which create and persist a large object in a loop 100 times each 2) Create 5 get threads which read 100 objects each in a loop based on object creation time and priority The message size should be around 1mb ...

 
issue

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key" feature in JPA. Let's see what I am doing : @Entity public class Book {     @EmbeddedId BookId id; } @Embeddable Class BookId {     Integer bookIdCountry;     ECountry country; } My BookId contains 2 attributes: One Integer and one enum. ... 08:08 Hello Object Db community :) I am using this wonderful library and I caught a ... one enum. These attributes are compliant with the object Db Documentation: http://www.objectdb.com/java/jpa/entity/id ...

 
forum_thread

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List<Element> ownedElements, and Example is a subclass entity with a relationship @OneToOne Element child. ... detached entity. If the entity has a relationship to an object that has no persistent identity, the outcome of the merge operation is ... allow the managed copy to point to the non-persistent object, whereas others might thown an exception immediately. The merge() ...

 
forum_thread

Object belongs to another EntityManager - ERROR

Hi, From time to time we are getting following error in our project when trying to insert/update a record in database ... ) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl #8' belongs to another EntityManager ... com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl #8' belongs to another EntityManager ... ) Caused by: com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl #8' belongs to another EntityManager ...

 
forum_thread

Criteria Query results in a NoResultException instead of returning object

When I run the following code    ... 45 more   Even though there exists an object that matches the query (check attached screen shot). Should the query be returning an object or am I doing something wrong?   Thanks. ...

 
forum_thread

Listing large number of complicated objects with paging.

Hi, For last few hours I was working on a problem with bad performance and memory problems with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 'Product' (attached to this post) entities in database and I'm trying to speed listing them with paging. The problem is, that running code that looks like this: ... now it's 384MB. I was trying to build wrapper object ProductTO that contains only fields that I need in listing and the use ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
issue

Error reading UTF string (Serialized Objects in Explorer)

This is the message I get for attached db and this query: ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Query for objects persisted within the same transaction

I have a question concerning reading uncommited entities with query, within active transaction. For example, I read data from file. Each line contains value of one of entity's attributes but those values are not unique, so it's possible to have a multiple instances of the same entity. To eliminate duplicates, after reading every line I first check using a query, if an entity with that attribute value already exists. If no - I create one and persist it.... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...