ObjectDB Database Search
101-137 of 137 resultsIssue with orphanRemoval and multiple EntityManagers.getTransaction().commit(); TypedQuery q3 = em.createQuery(   | |
Empty query results after JAR creation"); EntityManager em = emf.createEntityManager(); String s = "SELECT c FROM Case c"; TypedQuery q | |
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 | |
Extra uninitialised entities spawned on merge(); TypedQuery query = em.createQuery("SELECT e FROM Element e", Element | |
Problem with queries on lists with reverse mapping = "team" are removed from Team the query returns the expected result. TypedQuery query7 = em.createQuery | |
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 | |
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 | |
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 =   | |
Internal exception when updating date filed (TemporalType.DATE); TypedQuery personQuery = entityManager.createQuery | |
@ElementCollection of type enum; em = emf.createEntityManager(); TypedQuery | |
java.sql.Date equals comparison not working with CriteriaAPI; TypedQuery query = em.createQuery(q); List | |
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 | |
JPA - ExceptionInInitializerError when creating EntityManager = emf.createEntityManager(); TypedQuery emailSettings = emTemp.createNamedQuery("EmailSettings | |
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 | |
Geospatial functions, locationName); TypedQuery query = em.createQuery(   | |
Performance in SELECT statement :state"; TypedQuery query = em.createQuery(strSelect, TestEntity.class); query.setParameter("state | |
Subquery 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 | |
Why the internal error was thrown?(); TypedQuery q = em.createQuery(query, clazz); q.setHint | |
Navigation through Path to evaluate collection; TypedQuery myquery = em.createQuery( "SELECT item FROM | |
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 | |
Error: Failed to write value of field X using reflection (oneToMany relation) = EMF.createEntityManager(); List results = null; try { TypedQuery query = em.createQuery("SELECT c | |
Query can't see recently persisted object = oid; } ... } ... TypedQuery query = mem.createNamedQuery("MyObject.findByOid", MyObject.class | |
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 | |
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 | |
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 | |
Query over the keySet of a map field with collection parameter It is possible to execute a query over a keySet of a map field with comparing to a collection parameter? Set values = new HashSet (); values.add("c2"); String query = // "SELECT e " + "FROM " + EntityParent.class.getName() + " e " + "WHERE e.map member of ?1"; TypedQuery q = em.createQuery(query | |
EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs.EntityManager; import javax.persistence. TypedQuery ; /** * @author Stanislav Jakuschev 28.02.2023 | |
JPA inheritance issue with ObjectDB - Field not found in type error"); System.out.println("JPQL: " + temSQL); System.out.println("Parameters: " + parameters); TypedQuery | |
Query only works correctly when debug printing results); EntityManager em = emf.createEntityManager(); TypedQuery query = em.createQuery("SELECT l from | |
Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema.chain == :chain"; TypedQuery query = manager.createQuery | |
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 | |
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 | |
Null pointer exception being thrown from within ObjectDB.; orderBy(cb.desc(r.get("objectDbId"))); TypedQuery query = entityManager | |
ClassCastException in Tuple.get(true); cq.where( cb.equal(joinProvidingPerson, storedProvidingPerson) ); TypedQuery query = em | |
Unexpected Exception (Error 990) with ArrayIndexOutOfBoundsException PersistenceException e) { return; } // remove all over 50000 if (rows 55000) { final TypedQuery query = em | |
Tracking changes to new collections (in enhancement mode) after flush); //------------------------------- //------------------------------- // mapping model load TypedQuery query =   |