ObjectDB Database Search

101-114 of 114 results

Fields in objects not populated in query result.

When I run the following Java code TypedQuery rootFolderQuery = this.entityManager.createQuery("SELECT f FROM Folder f WHERE f.parent IS NULL", Folder.class); final List resultList = rootFolderQuery.getResultList(); none of the Folder objects has its fields populated. Running the same query from

Finding an object by its datetime

SearchBookingByTimeStamp() { Calendar btime = Calendar.getInstance(); btime.set(2012, 10, 11, 7, 30, 00); //This time is already inserted, trying to find it /* My Query */ TypedQuery query = em.createQuery( "SELECT b FROM Booking b WHERE b.btime = :btime", Booking.class) .setParameter("btime

Sorting problem

= null;      TypedQuery icQuery = null;     String q = null

Geospatial functions

, locationName);         TypedQuery query = em.createQuery(   

possible index required for improving query performance

; } With the following query: TypedQuery query = em().createQuery( "SELECT r.party FROM Relationship r

Memory leak with OutOfMemoryError exception

; TypedQuery q = em.createQuery("SELECT d FROM DailyEntry d " + "where d.symbol = :symbol

@ElementCollection of type enum

;   em = emf.createEntityManager();         TypedQuery

Failed to write the value of field using reflection (error 363) on LAZY fetch

getEntities(Class classEntity) { TypedQuery query = getEntityManager().createQuery(String.format("SELECT e

Is it possible get the All PrimKeys for a given entity class in the DB?

Hi, I would like to retrieve all the primKeys (user defined) by doing something like: TypedQuery query = em.createQuery("SELECT mif.primkey FROM MyClass mif", MyClassPrimKey.class); The only alternative I can think of - would be to store the primkey on the object - but sounds like it is double

Query perfromance problem

; TypedQuery icQuery = null;   if (sortColumn == null) {    icQuery = em.createQuery

java.lang.ClassCastException in query results

I have a simple object stored in a ObjectDb file Stadium Name (java.lang.String) Capacity (int) City (java.lang.String)   When i run the following code i get the ClassCastException in the "for (Stadium result : results)" line TypedQuery query = em.createQuery( "SELECT Name, Capacity, City

InternalException when using MEMBER OF on a large list in a query

.properties AND property.scopeID MEMBER OF ?1"; TypedQuery q = em.createQuery(query, String.class); q

Null pointer exception being thrown from within ObjectDB.

;   orderBy(cb.desc(r.get("objectDbId")));     TypedQuery query = entityManager

Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema

.chain == :chain";         TypedQuery query = manager.createQuery