About named queries

forum_thread

Navigation and Parameters

Greetings ObjectDB team, Suppose I pass a List of persistent objects to some query as a parameter, can I navigate to those objects' fields ? E.g.: SELECT x FROM ClassX x WHERE x.a IS MEMBER OF :y.b #1 2010-10-20 11:54 Greetings ObjectDB team, Suppose I pass a List of persistent objects to some query as a paramet ...

 
issue

InternalException during producer/consumer scenario

Hi, I'm trying to use objectdb in a producer/consumer scenario. Producer threads put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main motivations for using objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a range of potentially complex criteria. 2) The number of objects produced can be potentially exceed available memory so can be held on disk within the objectdb file. Bug Version: 2.2.0 Priority: Normal Status: Fixed Replies: 2 Type:  Bug ...

 
forum_thread

How to check if an entity exists in a Database without loading it?

Hi, I am trying to speed up some code - where i check if the entity exists in order to make a decision. In Java - It looks like this (pk - is the primary key of the entity): MyClass find = em.find(MyClass.class, pk); boolean exists = find != null; Is there a way to check the existence without loading the entity? Thanks   #1 2015-07-16 21:14 Hi, I am trying to speed up some code - where i check if an entity exists in order to make a decision. ...

 
forum_thread

Storing methods?

I don't think ObjectDB does this, but I want to ask to make sure: are methods stored in the database along with data?  Thanks. ... in client-server mode user defined methods are in use in queries (supported by ObjectDB as an extension to JPA), the classes must be ...

 
forum_thread

finding post-persist pre-commit objects

Hi, I'm wondering if there is a way to have post-persisted, pre-committed, objects show up in queries? ie: the object has been persisted, but not yet committed. Dave   ... to have post-persisted, pre-committed, objects show up in queries? ie: the object has been persisted, but not yet committed. ...

 
forum_thread

any plan for monitoring tool ?

    hello , is there any plan you have for monitoring objectdb realtime. Tracking queries and finding bottlenecks?   ... have for monitoring objectdb realtime. Tracking queries and finding bottlenecks?   ...

 
forum_thread

ObjectDB with JRebel: copious 'Not Enhanced:' errors with EJBs

JRebel 6.5.1 ObjectDB-2.6.9_06 Glassfish4.1.1 (or Payara41 [163 full]] I appreciate that you are not responsible for compatibility with JRebel, but you might be able to provide some insight or feedback. Reported also to Zeroturnaround for JRebel here. When using JRebel I am getting copious server log output for nearly every @EJB on startup. Typical message is like: #1 2016-11-03 02:50 JRebel 6.5.1 ObjectDB-2.6.9_06 Glassfish4.1.1 (or Payara41 [163 full]] I appreciate that you are ...

 
forum_thread

Deadlock

Hi, I was playing with our application running on Java 7 and after switching ODB to Java 7 there was deadlock right after first few queries to database. Thread dump is attached to this post. ... ODB to Java 7 there was deadlock right after first few queries to database. Thread dump is attached to this post. ...

 
api-jdo

Query.fetchPlan

The name of the fetch plan used by this query(Annotation Element of javax.jdo.annotations.Query)

 
forum_thread

In version 2.5.2_05 does not work greatest by Date

In earlier versions this query worked fine. In version 2.5.2_05 does not work .orderBy( cb.desc(cb.greatest(root.get("createDate").as(Date.class)))).distinct(true) Thank you for your help. #1 2013-09-02 20:02 In earlier versions this query worked fine. In version 2.5.2_05 does not work . orderBy ( cb. de ...