About FROM

forum_thread

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

Hi, we are using ObjectDB 2.5.4_04 on Linux. Our application, which uses ObjectDb as a DB, exposes a Java RMI interface which allows remote RMI clients to run JPQL queries on the DB. The application internally runs SELECT NEW ... queries. For example: ... ( r . id , r . fileName ) FROM RecordingMetaData AS r WHERE ... A remote RMI ... interface. What we noticed is that once we UPDATE a record from the client (via the RMI interface), all SELECT NEW ... queries, which the ...

 
issue

JPQL support for mapped by (inverse) collections

As discussed and demonstrated in this forum thread, collection methods (IS EMPTY, SIZE, MEMBER OF, IN) are not supported for mapped by (inverse) collections.   ... query = em.createQuery( // "SELECT a FROM A a WHERE a.list IS EMPTY"); ...   // SELECT a FROM A a WHERE a.list IS NOT EMPTY List<A> list1 = em. createQuery ( "SELECT DISTINCT b.a FROM B b" , A. class ) . getResultList ( ) ; ...

 
forum_thread

IN expression in a Criteria Query

Hello, I am trying to migrate my Spring project from Hibernate to ObjectDB. On ObjectDB page, it is written that ObjectDB is 100% compatible with JPA. However, I have problem with this JPQL query: SELECT e FROM Employee e WHERE e.present = false AND NOT EXISTS (SELECT c FROM Computer c WHERE c.employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query, but ObjectDB throws exception: ... Hello, I am trying to migrate my Spring project from Hibernate to ObjectDB. On ObjectDB page, it is written that ObjectDB is ... I have problem with this JPQL query: SELECT e FROM Employee e WHERE e. present = false AND NOT EXISTS ( ...

 
forum_thread

Updating Entities

Hello, I'm currently writing a program using JavaFX and ObjectDB and I'm encountering a problem with Entities not sending their updates to each other. I have two Entities in question at the moment: Employee and Paygrade. ... ( ) { String str = "SELECT FROM Employee ORDER BY lastName, firstName, department.name, paygrade.rate" ... problem I'm facing is when I use handleModify() from my PaygradeModify class - the change to the Paygrade is not shown when I ...

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.... Entities section. Entity objects retrieved from the database by an EntityManager are also in the Managed ... A managed entity object can also be retrieved from the database and marked for deletion, by using the EntityManager’s ...

 
forum_thread

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 final oracle jdk 1.7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used for building the Guestbook.war only maven.   My GuestDAO code is as follows: ... = "Guest.getAll" , query = "select g from guest.Guest g order by g.name" ) } ) @ ... = this . em . createQuery ( "select g from guest.Guest g order by g.name" , Guest. class ) ;   ...

 
forum_thread

Issue with Casting / Joins

Hi I can't seem to find my way out of this. Basically what I have is something like: ... ) ; ...   // Try to query using join From<MyEntity> from = criteria. from ( MyEntity. class ) ; MapJoin< ? , ? , ? ...

 
api-jdo

javax.jdo.FetchGroup

FetchGroup represents a named fetch group for a specific class or interface.(Interface of JDO)

 
forum_thread

The server cannot start in CentOS

Hi, I try to run ObjectDB from Linux, but failed. My command is: java -cp objectdb.jar com.objectdb.Server start The result is attached. After typing the command, the system seems halting. ... Hi, I try to run ObjectDB from Linux, but failed. My command is: java -cp objectdb.jar ... Really? My client get no response from that server. Maybe the firewall shunt all connections? I will try ...

 
api-jpa

javax.persistence.criteria.FetchParent

Represents an element of the from clause which may function as the parent of Fetches.(Interface of JPA)