Internal Website Search
101-137 of 137 resultsSubquery error My query: TypedQuery query = em.createQuery("SELECT p FROM Station p WHERE rid = (SELECT p FROM Station p where tpl='York') AND tpl != 'York'", Station.class); Error: Exception in thread "main" [ObjectDB 2.6.6_04] SELECT p FROM Station p WHERE rid = ( == SELECT | |
Bulk Delete and Update - best practice?.getTransaction().begin(); em.persist(data); em.getTransaction().commit(); em.clear(); TypedQuery q = em | |
IN expression in a Criteria Query; TypedQuery query = em.createQuery(q); List results = query | |
EntityManager.refresh takes a long time EntityManager.refresh takes a long time for entity object Person in this code: logger.log(Level.INFO, "begin select for person " + new Date().toString()); TypedQuery personQuery =   | |
Query only works correctly when debug printing results); EntityManager em = emf.createEntityManager(); TypedQuery query = em.createQuery("SELECT l from | |
Error: Failed to write value of field X using reflection (oneToMany relation) = EMF.createEntityManager(); List results = null; try { TypedQuery query = em.createQuery("SELECT c | |
ArrayIndexOutOfBoundsException at com.objectdb.o.ALS.c(ALS.java:89).toString(arp.spa) + "'" // Get LogEntry's with same IP var query: TypedQuery [LogEntry] = em.createQuery | |
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 | |
Empty query results after JAR creation"); EntityManager em = emf.createEntityManager(); String s = "SELECT c FROM Case c"; TypedQuery q | |
How to creat a Query with Sql which returns a List marks(); TypedQuery query = dbConnection.getEm().createQuery( "SELECT m FROM Athlete a, Mark m where a.id | |
Extra uninitialised entities spawned on merge(); TypedQuery query = em.createQuery("SELECT e FROM Element e", Element | |
EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs.EntityManager; import javax.persistence. TypedQuery ; /** * @author Stanislav Jakuschev 28.02.2023 | |
Listing large number of complicated objects with paging. them with paging. The problem is, that running code that looks like this: TypedQuery icQuery = em.em.createQuery | |
"where in" query why this result returns an empty set? List results; TypedQuery prezs = em.createQuery("SELECT p | |
JPA - ExceptionInInitializerError when creating EntityManager = emf.createEntityManager(); TypedQuery emailSettings = emTemp.createNamedQuery("EmailSettings | |
Restrict by class in query I have the following bit of code: public List findFolderByName(String folderName) { TypedQuery byNameQuery = this.entityManager.createQuery("SELECT f FROM Entry f WHERE f.name=:name", Folder.class); return byNameQuery.setParameter("name", folderName).getResultList(); } I would have assumed | |
Navigation through Path to evaluate collection; TypedQuery myquery = em.createQuery( "SELECT item FROM | |
Catching exceptions from client-server mode online backup We're using the following to trigger an online backup and we're trying to implement server-side online backup (as discussed in https://www.objectdb.com/forum/2737). EntityManager em = database.createEntityManager(); TypedQuery backupQuery = em.createQuery("objectdb backup", Thread.class | |
DB Files permissions Hello, is it possible to configure default file permissions on created files? ObjectDB creates DB files with 644 linux permissions. We would need 664. This should apply also to backup files created by following code: EntityManager em = database.createEntityManager(); TypedQuery backupQuery = em | |
Tracking changes to new collections (in enhancement mode) after flush); //------------------------------- //------------------------------- // mapping model load TypedQuery query =   | |
Unexpected Exception (Error 990) with ArrayIndexOutOfBoundsException PersistenceException e) { return; } // remove all over 50000 if (rows 55000) { final TypedQuery query = em | |
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 query = em.createQuery("SELECT p FROM Point p where p.x = :y", Point | |
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 | |
Schema-Update: Rename superclass and remove one subclass; If we try to ecexute a Query (in the second main method): TypedQuery q = em.createQuery("SELECT c | |
ClassCastException in Tuple.get(true); cq.where( cb.equal(joinProvidingPerson, storedProvidingPerson) ); TypedQuery query = em |