ObjectDB Database Search
151-200 of 200 resultsShould derived fields of an EmbeddedId be manually maintained by app code? get an exception; Purged DB [ObjectDB 2 .3.0_01] Unexpected exception (Error 990) Generated by Java ... anything in the JPA 2 .0 spec https://download.oracle.com/auth/otn-pub/jcp/persistence- 2 .0-fr-oth-JSpec/persistence- 2 _0-final-spec.pdf?e=1317047713&h=54831c176e81a244a4c309e13eba0b27 which tells | |
objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation Build 2 .6.9_05 fixes 2 bugs that are demonstrated by your new console test. The remaining ... ;(and probably in all 2 .x builds until 2 .6.9_05), so it is still unclear why your application was not affected by ... before the property is set by your web application. support Support Thanks, objectdb- 2 .6.9_06.jar | |
How to disable use of graphic windows by objectDB/java -server -Xms16M -Xmx256M -cp /opt/java-tools/objectdb- 2 .3.0_04/bin/objectdb.jar:/usr/java/jdk ... ; 0:00 /usr/java/jdk/bin/java -server -Xms16M -Xmx256M -cp /opt/java-tools/objectdb- 2 ... -Xmx256M -cp /opt/java-tools/objectdb- 2 .3.0_04/bin/objectdb.jar:/usr/java/jdk/lib/tools.jar:/usr/java | |
Strange behaviour with ORDER BY and IN Hi, after trying out objectdb for a while now and being quite impressed by its speed and overall performance I noticed a strange behaviour where an ORDER BY - directive isn't executed as ... if we order by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter | |
how to query by properties of onetomany relations? (Error 990)).setParameter(1, barName) stacktrace: [ObjectDB 2 . 2 .4] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_23 (on Windows 7 6.1). Please report this error ... - it should be replaced by a more descriptive error message in future versions. However, this query | |
Grouping by date() have to group by date(). For few queries I was concatenating 'date' from year()-month()-day() calls ... field? lwalkowski Lukasz Walkowski Version 2 .3.5 supports 2 new date functions that take a Date instance ... with new version. When you group by date() there are two days per day. I mean group by divides each day | |
Suspected memleak caused by bad state of EntityManager the heap dump and found the numerous instances were referenced by ObjectDB. ([ObjectDB 2 .3.6_14]) com ... and using. We find a slow memleak in our application recently, and by trace of Entity construct and finalize, we found the problem is caused by bad state of EntityManager. After first throwing | |
Merge of entity classes with "mapped by" very slow Hi, I have found a strange behavior when merging entities with "mapped by " set on @OneToMany ... - one with mapped by , second with adding entities list without "mapped by ". The difference is huge event for such small objects - 2ms (without mapped by ) vs ~50ms (with mapped by ) Is there any chance | |
find repeated records by JPQL thread "main" [ObjectDB 2 . 2 .9_03] javax.persistence.PersistenceException Failed to read the value ... .getResultList(JpaQuery.java:636) at image.cleanDB.main(cleanDB.java:19) Caused by : com.objectdb.o.UserException ... .objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) ... 1 more Caused by : java.lang.OutOfMemoryError | |
ORDER BY problem, when String starts with language specific character Dear all, I have a problem with ORDER BY clause. I have a simple query: select u from User u order by u.name When the name starts with "normal/english" character, records are ordered correctly ... ORDER BY clause. However, if you have to sort a large result list - it might be more efficient | |
UserException: Package com.example.model is not found by the enhancer get the exception: com.objectdb.o.UserException: Package com.example.model is not found by ... and build my dist directory contains: 1. lib directory with all the jars 2 . example.jar 3. README.txt However, in my source code's lib directory I have: \lib\objectdb- 2 .5.4_05\database\example.odb | |
Master database switching to read-only mode, possibly caused by slave failure, slave became unresponsive and the master switched to read-only mode. By the look of it the slave ... during 3 minutes between 13:22:43 and 13:25:43 returned at 13:25:44 with Exception: [ObjectDB 2 .3.7_08 ... ) .............................................................. Caused by : com.objectdb.o.UserException: Connection is closed at com | |
Get multiple entities by Id I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c ... Just found out thath it seems to work correctly with 2 .3.7 and fails with 2 .4.3_03 andix Andreas ... you for the test case. Actually the test passes also with ObjectDB 2 .4.3, since this regression was added in build | |
Connection is closed Caused by: java.io.EOFException after an undetermined period. Caused by : com.objectdb.o.UserException: Connection is closed at com ... .createEntityManager(EMF.java:160) ... 39 more Caused by : java.io.EOFException at com.objectdb.o.NTS ... out of connections? Or is there something obvious that I am not seeing? I am using objectdb- 2 . 2 .6_03   | |
Unable to repair DB by Doctor. Hi, I am unable to repair a database by Doctor. Getting following error. com.objectdb.o ... ) at com.objectdb.o.DCM.j(DCM.java:112) at com.objectdb.Doctor.main(Doctor.java:10) Caused by : java ... . Thank you! Manoj Manoj Kumar Maharana You reported using version 2 .8. 2 . Please try first | |
NULL prefered in ORDER BY? Hi! Is there a way to NOT prefer NULL in Order BY ? I.e. assume this: @Entity class Hint {   ... do something like SELECT FROM Test ORDER BY hint.name It orders ASC like this (assuming I've got ... } and third one to NULL: Test 3 (with hint = NULL) Test 1 (with hint = A ) Test 2 (with hint = B) And descending: Test 2 | |
Group by date / time Hi, I'm trying to create reporting query that will return entities grouped by year / mont / day ... WHERE YEAR(record_date) = 2009 GROUP BY YEAR(record_date), MONTH(record_date) or maybe something like this: SELECT COUNT(id) FROM stats WHERE YEAR(record_date) = 2009 GROUP BY DATE_FORMAT(record_date | |
Extending model by "common entity", that all other entities will inherit from. For example I have 2 different entities in database with some data: @Entity ... :662) [na:1.6.0_22] Caused by : java.lang.ClassNotFoundException: pl.hplxtool.model.BaseEntity at com ... explorer or doctor. lwalkowski Lukasz Walkowski This schema change should be handled by ObjectDB | |
Internal ObjectDB error by read the primary key to your report on this forum thread . Do you still get the exception using 2 .6.6_05? support Support Yes, this exception occured using 2 .6.6_05. btc_es BTC EmbeddedSystems This is a similar issue that was not covered by the fix of 2 .6.6_05. Build 2 .6.6_06 should fix it. Unfortunately it is difficult to cover | |
Getting java.lang.ArithmeticException: / by zero() is throwing the following exception ava.lang.ArithmeticException: / by zero at com.objectdb.td.remove(td.java ... anymore and it is highly recommended to upgrade to ObjectDB 2 . But I can check the stack trace ... Binit Bhaskar This division by zero occurs in some hash table that happens to have a 0 size (but I | |
a second mapping-file is ignored in persistence.xml by enhancer will be enhanced by following output: enhancer: [java] [ObjectDB 2 .6.0_02 Enhancer] [java] 3 persistable ... will be enhanced by following output, because the enhancer is apparently ignored the ormreq.xml: enhancer: [java] [ObjectDB 2 .6.0_02 Enhancer] [java] 11 NON persistable types have been enhanced: [java | |
Mapped By Fetch is very Slow Well ! I think i pointed out a HUGE performance issue with mapped- by attribute (yeah ... attribute) 2 - Retrieve only 10 000 for testing 3- Wait ... On my AMD FX 8350, it took 60s Now, go the MyEntity class and remove "mapped- by ". You obtain 1 second max of query fetch. So my performance | |
Need help to analyse very high memory usage by objectdb (PRU, SEV, VAL[]) exceeded" exception. Nearly 90% of the memory are taken by com.objectdb.o.PRU (49%) com.objectdb.o.SEV ... them. Any kind of hints would help us to analyse/fix our problem. We use version 2 .6.9_08 in ... /query/domain/objectdb.com Forum Thread Need help to analyse very high memory usage by objectdb objects | |
A lot of ENT and SIV instances which are not cleared by GC and fixed (in build 2 .6.1_01) a bug in cascading detach through mapped by to-many relationships ... Hello. I have a JSF application (Glassfish 4, Java 8, ObjectDB 2 .6.0). In some time the heap is getting 95% full with java.lang.OutOfMemoryError: GC overhead limit exceeded. The first | |
query null or by zero error we have the critical problem that we receive a null or by zero (in the log a java.lang.ArithmeticException) error for this query: select o from ObjectNode o where o.currentLocation.nodePath ... indeed produces the reported error when version 2 .8.9 is used. However, testing the same with version 2 .9.0 | |
Java methods in queries are now forbidden by default Starting with build 2 .9.5_02, arbitrary methods in queries are forbidden, unless enabled explicitly before accessing ObjectDB by : System.setProperty("objectdb.temp.unblock-query-methods", "true"); (or by running the JVM with -Dobjectdb.temp.unblock-query-methods=true ). The purpose of this change | |
Null returned by Persistence.createEntityManagerFactory = Persistence.createEntityManagerFactory("C:/objectdb- 2 .5.5_12/db/tasks.odb");   ... the application I get an exception. The exception is ultimately caused by a null pointer on the line "em ... it is, because stack traces are occasionally inaccurate. Try to change your code by moving suspected lines to separate methods, etc. support Support | |
Group by: list if no aggregate function is specified Hello! In a query like SELECT parent, children FROM Parent parent LEFT JOIN p.children children GROUP BY parent maybe it would be good if it will return a list of Object[ 2 ], where the second object is a list of children of a parent. Because creating a query to get a list of parents | |
UserException - Object User#2 belongs to another EntityManager Hi! Scenario's steps : 1. User goes to his profile, a JSF page. 2 . @RequestScoped CDI bean UserDataB loads the current user of the session at each request, by using @Stateless bean UserC#findUserById(Long id) 3. JSF page's @RequestScoped CDI bean AnotherB loads trades of that user, by using | |
ObectDb 2.3.6 in OSGi environment of 2 .3.6. support Support Hi, Thanks, now I am one step closer. I get following stacktrace now: java ... use a persistence.xml! The stacktrace looks like this: [ObjectDB 2 .3.6] javax.persistence ... .runners.ParentRunner$ 2 .evaluate(ParentRunner.java:222) at org.junit.internal.runners.statements | |
Embedded in JDO metadata not working in objectDB 2.x ?. Is the enormous increase of database file size caused by the number of not-embedded objects in ObjectDB 2 opposed to embedded ones in objectDB 1 ? 2 . Could be that ObjectDB 2 is ignoring the "embedded=true ... are embedded too. I did not change the metadata when I was moving from ObjectDB 1 to 2 , I | |
Bulk load of eager mapped by (inverse) relationships) fields in bulk as well. support Support Bulk load of eager mapped by (inverse) singular references is now supported in build 2 .4.4_13. support Support ... When a collection of objects is retrieved by ObjectDB (e.g. by a query) ordinary referenced ... . However, inverse (mapped by ) references that have to be loaded eagerly currently do not | |
Lazy loading of mapped by (inverse) singular references ObjectDB ignores lazy setting of non collection mapped by (inverse) fields and loads them always eagerly. This is allowed by JPA since lazy is only hint but it is not efficient. The reason ... , so it is always available. For mapped by (inverse) reference fields no information is stored in | |
InternalException caused by OOM: Metaspace. Although Metaspace can happen independently on the heap usage I believe. Stacktrace follows: [ObjectDB 2 .5.5_05] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0 ... ) and the next part: Caused by : java.lang.OutOfMemoryError: Metaspace at java.lang.ClassLoader | |
Alias not used in ORDER BY would have expected the alias to be used in the ORDER BY clause, something like SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY TEST However what I actually get as query string is SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY UPPER($1.someStringProperty) This doesn't | |
JPQL support for mapped by (inverse) collections, SIZE, MEMBER OF, IN) are currently not supported for mapped by (inverse) collections. These operations are supported for direct (not mapped by ) collections. Navigation and JOIN is supported for both direct and mapped by collections. The following test case demonstrates a problematic query | |
jakarta.persistence.metamodel.IdentifiableType Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute ... name ) Return the attribute declared by the managed type that corresponds to the specified name ... the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes | |
jakarta.persistence.metamodel.EntityType An instance of EntityType represents an entity type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance ... ( String name ) Return the attribute declared by the managed type that corresponds to the specified ... () Return the attributes declared by the managed type. Returns empty set if the managed type has no declared | |
jakarta.persistence.metamodel.MappedSuperclassType Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return ... ( String name ) Return the attribute declared by the managed type that corresponds to the specified name ... the attributes declared by the managed type. Returns empty set if the managed type has no declared | |
Incorrect entity returned by query does not fulfill the provided conditions: source.row.q = 2 source.row.offsetEntry.offset = 1 dep.target.row.q = 2 dep.target.row.offsetEntry.offset = 1 Can you please investigate this issue or ... you for this report and test case. Please try version 2 .7.3, which should fix this bug. support Support | |
jakarta.persistence.Column: Annotation Target: Method, Field Specifies the column mapped by the annotated persistent property or ... ; } Example 2 : @Column(name = "DESC", columnDefinition = "CLOB NOT NULL", table = "EMP_DETAIL") @Lob ... = false, precision = 12, scale = 2 ) public BigDecimal getCost() { return cost; } Portable | |
Detached JPA Entities Detached entities are objects in a special state where they are not managed by an EntityManager ... have limited functionality: Many JPA methods, for example, lock , do not accept detached objects. Retrieval by ... EntityManager instances. Explicit detach You can detach an entity by using the detach method: em | |
JPA Connections and Transactions A connection to a database is represented by an EntityManager instance, which also provides methods ... connection by using a separate EntityManager instance for each HTTP request. The main role ... transactions. Transactions are managed by an EntityTransaction instance, which is obtained from | |
jakarta.persistence.metamodel.ManagedType, mapped superclass, and embeddable types. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods ... ) 1.0 Attribute getDeclaredAttribute ( String name ) Return the attribute declared by the managed ... getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type | |
jakarta.persistence.metamodel.EmbeddableType of EmbeddableType represents an embeddable type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods ... (JPA) 1.0 Attribute getDeclaredAttribute ( String name ) Return the attribute declared by ... (JPA) 1.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns | |
Different behavior for two equal queries] Evaluate fields in IndividualContact ($1) instances. Step 2 : Process OrganisationContact (v$1 ... ) instances. Step 2 : Process OrganisationContact (v$1) instances (for every result of step 1 ... .organisation. Step 3: Process IndividualCommunicationInfo (v$ 2 ) instances (for every result tuple | |
ObjectDB 2.2.2 Changed log format to include date and time . Changed class loader management. Fixed handling multiple order expressions in inverse (mapped by ) fields. Fixed the behavior of CacheStoreMode setting in L2 shared cache. Fixed TreeSet and TreeMap element comparison bugs. Fixed an Explorer | |
jakarta.persistence.PersistenceUnitUtil or managed by entity managers for this persistence unit or on new entity instances. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Class getClass ( T entity ) Return the concrete entity ... . This method may, but is not required to, load the given entity by side effect. Parameters: entity | |
jakarta.persistence.criteria.CriteriaQuery. Since: Jakarta Persistence (JPA) 2 .0 The JPA Criteria API Queries article explains how to use ... ) 3. 2 boolean isDistinct () Return whether duplicate query results must be eliminated or retained ... (i.e., a criteria query object created by either the createTupleQuery method or by passing a Tuple | |
SELECT clause (JPQL / Criteria API) query returns Country objects, which then become managed by the EntityManager instance em : TypedQuery ... directly. However, you can add their content to the SELECT clause by using a bound JOIN variable in ... with the containing entities. Therefore, embedded objects that are retrieved directly by a result path expression |