About find

forum_thread

ODB with Netbeans

ODB2 allows JPA attributes to be public (which is great), but JPA does not. So, in Netbeans, with attributes like this: @Entity class A { public String name; } I get compile time errors "Instance variable for persistent attribute must not be public" How does one switch that off in Netbeans? ... question should be discussed in a NetBeans forum. I didn't find these errors in Tools > Options > Editor > Hints > Java. ...

 
forum_thread

A lot of ENT and SIV instances which are not cleared by GC

Hello. I have a JSF application (Glassfish 4, Java 8, ObjectDB 2.6.0). In some time the heap is getting 95% full with java.lang.OutOfMemoryError: GC overhead limit exceeded.  The first screenshot from VisualVM shows used heap during a 1000 requests stress test. The second shows that after this test there are many com.objectdb.o.ENT and com.objectdb.o.SIV instances. Why isn't it cleaned? I use simple EJB managers containing EntityManagers. On bean's PreDestroy and in servlet's i make entityManager.clear(); ... using  "objectdb.temp.no-detach" ? Try to find the roots and paths to the ENT objects (using VisualVM) that keep them ...

 
release

2.2.9

... Fixed a bug in managing a new entity after an attempt to find it in the database. Fixed a bug in using LIKE in AND/OR in ...

 
forum_thread

Jboss 6 persistence.xml startup error

Hi,   I'm trying to migrate a small EJB 3.1 project from Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.   Here is my setup: ------- Start persistence.xml ------- ... element in the persistence.xml that I managed to find. Also, when setting up a jboss datasource it requires a SQL driver ...

 
forum_thread

InternalError on multiple AND and JOIN Query

Hi, Using objectdb 2.2.8_06. Running the following query: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.contactDetails $2 JOIN $2.addresses $3 JOIN $3.attributeList $4 JOIN $2.phoneNumbers $5 JOIN $5.attributeList $6 WHERE ((($4.name='suburb') AND ($4.valueAsString='Los Angeles')) AND (($6.name='areacode') AND ($6.valueAsString='310'))) Getting: ... ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 09:30:08,687 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 09:30:08,687 |-INFO in ...

 
forum_thread

Help understanding Entity behavior with JPA

Hi Support,   We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as:   @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; ... can get the single managed entity of that ID by using find or merge . Non managed objects with the same ID may be replaced by ...

 
forum_thread

Significant I/O costs during batch update or insert data.

Our application has some complex entities. We do batch update(merge detached entity) every 2 minutes. We find the period significant IO costs these days, and disappeared when turn off the batch updating. 1.ObjectDB is in embedded mode. 2.ObjectDB version is 2.3.7 3.Database file size is nearly 600mb and increasing. ... do batch update(merge detached entity) every 2 minutes. We find the period significant IO costs these days, and disappeared when turn off ...

 
api-jdo

setMapping(mapping)

Set the Mapping setting for this factory.(Method of javax.jdo.PersistenceManagerFactory)

 
forum_thread

Changing from client server to embedded mode

Hi, I have created a java web application and used ObjectDB in client Server mmode. It worked as per my expection. In Client server mode I used Persistence.createEntityManagerFactory("objectdb://localhost/myDB.odb;user=admin;password=admin"); Now to switch to embedded mode, I have tried following things #1 2013-03-26 08:13 Hi, I have created a java web application and used ObjectDB in client Server mmode. It worked as per my e ...

 
forum_thread

Using of Second Level Cache

In our use case we want to find some entity types always again very quickly by primary key or query in many short transactions. The entity MyEntity1 and its relationships to MyEntity2/MyEntity3 was load and the entity MyEntity1 is taken in the second level cache, the other entity types not. Are the relationships to MyEntity2/MyEntity3 still always referenced although the entity manager is closed, so that the memory for MyEntity2 and MyEntity3 can never be released by garbage collector? ... In our use case we want to find some entity types always again very quickly by primary key or query in ...