About Enhancer

forum_thread

Performance in large transactions

Hello, we have a performance problem when we use a large transaction. Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities and between the creations we call a select query. The execution of the query becomes slower at each iteration. (In the query, we search for an item of type Entity2. However, there is only one entity.)   Pseudocode for the fast and the slow solution FAST: #1 2015-03-03 15:07 Hello, we have a performance problem when we use a large transaction. Let's do exactly the same i ...

 
forum_thread

Duplicate a table

Hello, I would like to know if it's possible to copy the content of a table representing one class of object to another table whithout having to use java object (no object instantiation) ? In fact, I would like to execute a native query like "select * into T0 from T1" My purpose is to backup a table before erasing the content. Thanks. #1 2015-11-12 13:57 Hello, I would like to know if it's possible to copy the content of a table representing one class of ...

 
forum_thread

objectdb.conf Information

Hello, Is it possible to get detailed information on objectdb.conf client vs server? We do have an objectdb.conf for our client and one for our server instance. Now there're several questions: - Which config entries are relevant for the client and which one for the server? I.e. what about: <cascade-persist always="true" on-persist="false" on-commit="true" /> we want to activate enhancer agent, guess this is client right? activation-code - guess this is required for server only right? ... on-commit="true" /> we want to activate enhancer agent, guess this is client right? activation-code - guess this is ...

 
forum_thread

Type xxx is not found (error 301)

The error: Type User is not found (error 301) occurs when I query the db for a type before any instances of that type have been persisted, e.g.: return em.createQuery ("SELECT a FROM User a").getResultList (); What I was expecting was an empty list, not an error. Is there some enhancement that should be done beforehand?   #1 2010-11-11 09:24 The error: Type User is not found (error 301) occurs when I query the db for a type before any in ...

 
api-jdo

javax.jdo.listener.LoadCallback

This interface is used to notify instances of load events.(Interface of JDO)

 
api-jdo

javax.jdo.listener.DeleteCallback

This interface is used to notify instances of delete events.(Interface of JDO)

 
api-jdo

PersistenceCapable.MEDIATE_READ

If jdoFieldFlags for a field includes MEDIATE_READ, then the field has been enhanced to always call the jdoStateManager on all reads.(Static Field of javax.jdo.spi.PersistenceCapable)

 
forum_thread

How find out ObjectDB version at runtime (in a web app)

Am getting inconsistent results with the "objectdb.temp.no-enhancement-crc-check" system property of objectdb-2.6.9_02 in a Glassfish web app. Can see correct version of objectdb-2.6.9_02 in /build/web/WEB-INF/lib. When one runs the enhancer (which I am doing post-compile, pre-deploy with an Ant script) Object clearly indicates the version. Q: How can one interrogate objectdb for the version at run-time ? ... in /build/web/WEB-INF/lib. When one runs the enhancer (which I am doing post-compile, pre-deploy with an Ant script) Object ...

 
api-jdo

newObjectIdInstance(pcClass)

Create a new instance of the ObjectId class of this PersistenceCapable class.(Method of javax.jdo.spi.JDOImplHelper)

 
forum_thread

Class loading problem with private packages in OSGi environment

Our Business Objects are the JPA entities. We develop our product domain driven. This means we have several domains. Each domain is split into business layer and persistence layer (others are not relevant here). Per domain and per layer, we have an OSGI bundles. The business layer should have no dependency down (an exception is the dependency to the ObjectDB for the enhanced entities).  The persistence Layers have a dependency to the business layer and to the central DataAccess Layer. #1 2015-02-05 07:46 Our Business Objects are the JPA entities. We develop our product domain driven. This means we have several domai ...