About field

issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: ... You can improve query performance by retrieving field values rather than entity objects (when applicable) because of the ...

 
forum_thread

Cannot sort descending, when ordering by caluculated float in a method

Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem. public class InvoiceItem{ ..     private float price;     private float amount; .. }   public class Invoice{ #1 2011-06-23 19:43 Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem. public ...

 
manual

[ODB1] Chapter 5 - JDO Connections

The PersistenShows how to use database connections and transactions in JDO. ceManagerFactory interface represents a factory of database connections. Its main role is to provide PersistenceManager instances. The PersistenceManager interface represents a database connection. Every operation on a database requires a PersistenceManager instance. The Transaction interface represents a transaction on a database. Every operation that modifies the content of the database requires an active transaction.[toc hidden:1] This chapter describes three essential interfaces for using JDO: 5.1  javax.jdo.PersistenceManagerFactory 5.2  javax.jdo.PersistenceManager 5.3  javax.jdo.Transaction The PersistenceManagerFactory ...

 
api-jpa

javax.persistence.RollbackException

Thrown by the persistence provider when EntityTransaction.commit() fails.(Exception of JPA)

 
doc

java.lang.RuntimeException

(Exception of java.langException RuntimeException)

 
issue

NPE at com.objectdb.jpa.JpaQuery.getResultList

This is very similar to issue #51  raised by kaosko .   So perhaps I should have added it there.  Anyway, here it is....   Bug Version: 2.2.7 Priority: Normal Status: Closed Replies: 3 Type:  Bug ...

 
forum_thread

Cast exception?

Somehow I am unable to persist an entity class I wrote with manual @Id. I have a small Player class and I wish to store it with user ID as the primary key. So I declared the (only) primary key field as: @Id public int uid; This is how I'm persisting the instance: #1 2014-06-02 19:13 I'm getting a weird exception: java.lang.ClassCastException: database.entity.Player cannot be cast to d ...

 
forum_thread

Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. #1 2012-05-15 15:36 Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in mem ...

 
forum_thread

JPQL JOIN FETCH Error

Hello I get an error when executing the following JPQL query: ... "Metadata" does exist in the database, as well as the field "titles" and its type "MetadataString" (see attachments). But ...

 
forum_thread

evictAll() behavior

I'm writing a multi-user drawing tool, using objectdb as the central store.  When a user press F5, I want to pick up all the changes from the database.  So, I call evictAll() in the following ways: pmf.getDataStoreCache().evictAll();  // the factory pm.evictAll();                                 // the persistence manager A couple of questions about this: 1. the first evictAll() seems to be clearing the L2 cache -- is this correct 2. the evicts only work when they are done inside a transaction -- is this specified in the JDO spec?... and read using the new Enhancer in one piece instead of as field by field - which is more appropriate in relational databases). ...