About in

forum_thread

Problem with log file in an embedded db with netbeans platform application

Hello, I'm starting a new desktop application built with netbeans platform 7 and objectdb/JPA as embedded db (version 2.3). I haven't had any problem with the domain class library project, but running the netbeans platform application that use the same domain class library an error occurs that crash the application. This is part of the stack trace: ... file name (this starts with "file:" and ":" is not allowed in ntfs filesystem). I can't understand if the problem is with ... with any suggestion or to find a solution? Thanks in advance edit ...

 
forum_thread

Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

I doubt this is an ObjectDB-enhancer problem, I am however reporting it in case anybody else encounters the problem too. It is mostly also not a concern for my own web app, because in most cases a non-static logging variable can be used in an @Entity.     ObjectDB 2.6.3_04     Apache Log4j2 - 2.5     Mac OS X     jdk1.7.0_51 or jdk1.8.0_60     NetBeans 8.1Beta ... is an ObjectDB-enhancer problem, I am however reporting it in case anybody else encounters the problem too. It is mostly also not a concern for my own web app, because in most cases a non-static logging variable holder can be used in an @Entity. ...

 
issue

Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker

Hi   there is something wrong with enhancement process I got that class was succesfully processed, log has size 0, enhancer is from build objectdb-2.2.8_08 and during object creation when some filed is initialised i got an exception   Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker at com.package.Network.__odbSet_Connections(Network.java:1) at com.package.Network.<init>(Network.java:95) at com.package.EnhancementTest.main(EnhancementTest.java:14)   ... i got an exception   Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker at ... but it has no __odbTracker field which is referenced in generated method:  __odbSet_Connections   br ... level entity / persistence capable class). In addition, you should enhance all your classes in one run. ...

 
manual

Numbers in JPQL and Criteria Queries

Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries. Numeric values may appear in JPQL queries in many forms: as  numeric literals - e.g. 123 , ... arguments. as  path expressions - in navigation to persistent numeric fields. as aggregate ...

 
manual

UPDATE SET Queries in JPA/JPQL

Explains how to apply server side bulk update using a JPA/JPQL query.... entity objects can be updated, as explained in chapter 2 , by: Retrieving the entity objects into an ... executed, update the content of specified entity objects in the database. Updating entity objects in the database using an ...

 
issue

Unexpected Query Token / Casting in Query

Hi! Please find the attached database. Doing a simple query with casting SELECT COUNT(DISTINCT $1) FROM com.quasado.foundation.contact.individual.IndividualContact $1 WHERE UPPER(((com.quasado.foundation.warehouse.api.model.account.contact.IndividualContactDebitorAccountFragment) $1.qubletFRAGMENTMAP.get('com.quasado.foundation.warehouse.api.model.account.contact.IndividualContactDebitorAccountFragment')).debitorAccount.bankAccounts.routingNumber) LIKE UPPER('%28%') results in the error ... LIKE UPPER ( '%28%' ) results in the error Query Execution Error ===================== Unexpected ... Note: Removing the UPPER on both sides stills results in the same error so it's not because of the upper like I've again ...

 
forum_thread

JPA Query language support in OBjectDB / Sub query or nested Query

Hi Wanted to check with you on the exact level of support of JPA QL within the ObjectDB world. I have given a sample typed query below which fails to work with ObjectDB and it runs very well with the Hibernate/MySQL JPA. We are using Spring Data here. It looks like a problem with Sub query or nested queries where I am using IN clause like below. ... problem with Sub query or nested queries where I am using IN clause like below. @Query("SELECT product FROM Product product WHERE product.id in (SELECT msg.objectId FROM Message msg WHERE msg.contextId = ... You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome). Use ctrl + right ...

 
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 ... 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 ...

 
forum_thread

Join performance in Objectdb

select count(e) from Meta e, ImageNet i, Page p where e.idImage=i.id and e.idPage=p.id; So simple a command cause me half an hour and is running now! Each table has about 160K records. What formula can predict the time for such counting? TIA ... Since you didn't provide a test case (as requested in the posting instructions ) it is impossible to see what is exactly the problem. Maybe the id fields in Page and Image are not annotated with @Id or @Index . In that ...

 
api-jpa

Criteria Query Selection and Results

Reference (JavaDoc) of JPA query criteria result interfaces, including Selection, CompoundSelection, Order and Tuple. The JPA Criteria API interfaces in this group are in use for setting the SELECT and ORDER BY clauses and for representing query ... Clause Elements The content of the SELECT clause in a criteria query is represented by Selection : ...