About reflection

forum_thread

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

We are using ObjectDB 2.5.1_04. The following JPQL query causes an internal exception: SELECT COUNT(r) FROM RecordingMetaData AS r WHERE ((r.mapFromCli LIKE '192.168.10.13%' ESCAPE '\')) The exception: #1 2014-02-20 00:38 We are using ObjectDB 2.5.1_04. The following JPQL query causes an internal exception: SELECT COUNT & ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid #1 2013-04-30 15:49 Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) ...

 
issue

Blocked by find

I have a container object which wraps an objectdb database. There is a "putIfAbsent(String id, Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager "find" method. If nothing is returned from the db the passed object is persisted to the db. I have 5 threads which use this method. In a run today one of the threads seems to have got stuck somewhere in the find. The thread dump looks like: Bug Version: Priority: High Status: Fixed Replies: 23 Type:  Bug ...

 
forum_thread

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... <enhancement agent="false" reflection="warning" />   <cache ref="weak" level2="64mb" ... <enhancement agent="false" reflection="warning" />   <cache ref="weak" level2="64mb" ...

 
issue

Internal exception on flush

Today I received the exception below on running the following code: Bug Version: 2.3.3 Priority: Critical Status: Fixed Replies: 3 Type:  Bug ...

 
api-jdo

javax.jdo.Query

The Query interface allows applications to obtain persistent instances, values, and aggregate data from the data store.(Interface of JDO)

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: Bug Version: 2.3.3 Priority: Critical Status: Fixed Replies: 2 Type:  Bug ...

 
forum_thread

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: ... to set numeric value of field property Element.id using reflection However, in my main real-world web app (too large to ... com.greensoft.entity.value.EnumValue.oldValue using reflection I have not managed to reproduce this yet in a smaller test ...

 
release

2.4.7

... Fixed a bug in detecting orphan entities in reflection mode. Fixed a bug in listing inherited persistent ...

 
forum_thread

Problem with distinct select, order by and equivalent alias/attribute path

Hi, while working with a (standard-)JPA-query generating framework we run into an exception when ordering the results of some projection when the order by expression is different (though logically equivalent) to the projection expression. Here is the example: #1 2016-01-10 10:19 Hi, while working with a (standard-)JPA-query generating framework we run into an exception when ordering ...