About activation code

issue

Weird issue with variable naming

hi, ... said, cannot replicate it in a demo, however here's my code I was trying to replicate it which is similiar to what we do. We'd ... makes the difference though I am doing that in the demo code as well without success of replication.. ...

 
issue

Better support for ObjectDB in Eclipse Plugins

ObjectDB can be used in Eclipse plugin, but currently it has to be embedded in the plugin and cannot be used from other plugins in which it is not embedded. More details can be found in the following forum threads: ObjectDB eclipse plugin Eclipse plugin problem (using ObjectDB as a separate bundle) ClassCastException of same object type javax.persistence.PersistenceException ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
issue

Post-compile enhancement sometimes causes error in generic loops: incompatible types found: java.lang.Object: required: Entity

I have moved from automatic run-time enhancement to explicit post-compile enhancement in an Ant build.xml in a NetBeans web app, and sometimes on editing a file that performs a generic loops over and @entity type I get a generics error. The loop is:  for (Steel s: this.steelMaterials.getL_Steel().getEls()) { eSteelTableItems.add(asXmlElement(s)); } Where getEls() here gives: List<Steel> This sometimes (only, I don't understand the circumstances) gives this error: ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
issue

@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
issue

Query execution creates a wrong result

Hello, we analysed an unexpected behavior and find out that the result of an Query are wrong. We prepared an Example that shows the BUG. (see attachment) The Example executes two Queries. The first returns an expected result (one Entity). The second Query is the first Query with an additional WHERE condition. But than we get another (wrong) result.   ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
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. ... drop = "temp,tmp,odb" /> <activation code = "..." /> </database > I've uploaded ...

 
issue

Inefficient memory usage with very large transactions

When a large transaction is committed, ObjectDB increases some internal structures, i.e. allocates more memory, but from that point the structures remain big and the memory is not released even if all the next transactions are small. This problem was found during a heap analysis (see #9 in this forum thread), and was fixed in build 2.4.3_02, but the fix was removed later in build 2.4.3_03 because it caused other problems (#10, #11 in that forum thread). ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
forum_thread

Error in reading Enum in JPA - Failed to read using reflection

I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE). When an entity User is created, everything looks OK and I have seen on explorer that User is created as expected with valid values of Status. This is all done with JPA/EJBs. However, at the time of reading the Object (findById), the system throws an error  com.objectdb.o.UserException: Failed to read the value of field com.xxx.User.status using reflection caused by.. ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
issue

Persist & remove in same transaction

I have a test case (attached) which performs the following actions: ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
issue

No Entity Class API

Both JPA and JDO are based on accessing and managing data in the database using persistable classes (mainly entity classes in JPA or persistence capable classes in JDO). Sometimes, it might be useful to access data without classes. For example, a tool that finds and replaces strings in the database should be generic and should not be bound to specific entity classes and persistent fields. An API for accessing (and maybe also modifying) data in the database without classes can be useful in some applications.... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...