ObjectDB Database Search
1-43 of 43 resultsComparison in JPQL and Criteria API Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison operators ObjectDB supports two sets of comparison operators, as shown in the following table: Set 1: JPQL ... how each comparison operator handles NULL values. One column shows the result of comparing a NULL value | |
java.sql.Date equals comparison not working with CriteriaAPI Hello, Using ODB 2.4.5 and the Criteria API, doing a simple equals comparison with java.sql.Date value doesn't match any results in the database. Our code looks like this: CriteriaBuilder builder ... everywhere also in the Entity property field to ensure pure date comparison and saving without time parts | |
String comparison in query where clause I am having trouble getting a simple string comparison to work in an SQL "where" clause. It is my understanding that queries are case sensitive by default and I do not want that, so I am constructing the query as follows... SELECT e FROM Exercise AS e WHERE UPPER(e.name) = ?0 and then I | |
ObjectDB vs DB4O comparison ObjectDB and DB4O are the only two real object database I known. Why didn't you give a comparison between them in JPA Performance Benchmark (JPAB)? TIA gzdillon Lai Yang The focus of JPAB is JPA implementations and ObjectDB is the only object database that supports JPA | |
Literals in JPQL and Criteria Queries are equivalent. Comparison with NULL in JPQL follows SQL rules for NULL comparison rather than Java rules, as explained on the Comparison Operators page. Boolean literalsLiterals Similar to Java and SQL, JPQL | |
Paths and Types in JPQL and Criteria API persistent classes can participate in direct comparisons by using the = and operators ... by all six comparison operators and used for ordering . Navigation through path expressions A path ... (Country.class)); In the preceding example, the comparison is between the type of the e object | |
Java 6/7 Performance ComparisonJava 6/7 Performance Comparison | |
JPA Query Expressions (JPQL / Criteria) : * (multiplication), / (division), + (addition), and - (subtraction) Comparison operators ... , isNotEmpty , isMember , isNotMember , size ) Comparison expressions ( equal , notEqual , gt , ge , lt , le | |
Is ObjectDB better than competing object databases? Naturally, this is not the place to look for an unbiased answer for this question. However, you should consider the following points when doing your own objective comparison of object databases: ObjectDB is unique in supporting the standard APIs. It is the only object database with built in | |
Logical Operators in JPQL and Criteria API comparison operators: Predicate isLarge = cb. gt (country. get ("area"), 1000000); AND / OR | |
JPA Class Enhancer of persistent field modifications, which avoids the need for snapshot comparison of entities (as | |
Query Parameters in JPA is discarded. This is useful for comparisons against a specific date when the time component | |
ObjectDB Object Database Features navigation expressions using the dot (.) operator. Comparison operators ( | |
JPA Criteria API Queries , ...) Collection expressions ( isEmpty , isNotEmpty , isMember , isNotMember , size ) Comparison expressions | |
jakarta.persistence.OrderBy within it. The properties or fields used in the ordering must correspond to columns for which comparison | |
Object comparation never matches But what about: http://www.objectdb.com/java/jpa/query/jpql/ comparison Section "Comparable Data Types" Comparison ... to prefer value comparison as suggested in #2 above: Value comparison is compatible with JPA and therefore more portable. Value comparison could be more efficient (especially if indexes are defined | |
Searching lists within objects; Thanks P. pedwards Paul Edwards You are right about comparison of entity objects - it is based on ID comparison . It is unclear why you manage two levels of nested lists. For the simplicity ... are currently used in such comparison , so it might be still more efficient to use multiple JOINs in this case | |
query on calendar class duplicating this information into an additional persistent field. The comparison failed because of comparing ... is for literals, so it cannot contain variables or parameters. In comparison the operand types must match. Not | |
Optimization Question factors. For example, if your classes have many indexes - smart comparison might be faster ... can help. ObjectDB does such comparisons internally to determine if a merged object | |
persisting object with long[][] arrays of array; EMF.close(); } as a comparison I ran it with simple | |
Possible issue for JPQL "LEFT [OUTER] JOIN"" but it works fine with an relationship comparison : "SELECT a,b FROM A a LEFT OUTER JOIN a.listB b | |
Compare old and new schema and an automatic comparison of old schema vs new schema is the only reliable way of making sure database | |
EntityManager JPA or JDO impl and different behavior more than the database id for generation or comparison , it all fails horribly. Have a look at the output from | |
Calendar in Criteria Querys . The usual comparison methods are used rather than before and after: import java.util.Calendar; import | |
substring works with string but not with char, do you agree? chris Christoph Ernst I am not sure that this comparison is valid, since the type | |
Possible issue for JPQL IS EMPTY expression Possible issue for JPQL IS EMPTY comparison expression: SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type for operator IS EMPTY (error 756) Thanks. Note: It doesn' t work with SIZE(): SELECT e FROM MyEntity e | |
How to add minutes to a Date with JPA2 the result as an argument for direct comparison with the date field? support Support Yes | |
First query takes 4+ minutes to complete. SQLite in comparison responds within few seconds on average with the same number of records. We hope | |
Vs. EHCache Hi, I realize this is kind of like an apples vs. oranges comparison , but I would be interested if you have any performance information vs. something like ehcache with a persistent store. I'm currently evaluating for a simple schema to persist only 1 or 2 types of entities | |
Create simple index for a Id field retrieval and reading operations (see this comparison ). But obviously a HashMap in memory is faster | |
Performance Questions... it still might be slower than other comparison operators. An index on the string field | |
Best File system for objectdb Hello , whats the best Filesystem do you recommend for speed for objectdb? As far i know these ; btrfs , extfs4 , extfs3 , zfs , ntfs , fat32 , EXOFS , Lustre Which one do you recommend ? kadirbasol Kadir BASOL We have no such comparison data so we cannot recommend | |
Querys slower when execute a query after every persist comparison of object states in order to find which objects in the persistence context have been modified | |
Pre-detach loading: retrieval by navigation not working in if statement a difference ? If so, in order to perform a truly scientifically clean comparison , I might be able | |
in-memory and on-disk support? system overhead is minimal. See for example comparison of RAM drives , including against a regular hard disk | |
Calculating age in query?? thanks! Alex quasado Alexander Adam You can use a JPQL query with a simple date comparison : SELECT p | |
Apparent Lazy Loading issues." method use more than the database id for generation or comparison , it all fails horribly. Have a look | |
ObjectDB 2 JDO Manual an object language to an object database. And I agree with most of the comparisons that we've ... ) for more documentation? AlphaOne Ron Brennan I agree with most of the comparisons that we've probably all seen ... who published these comparisons . Actually the differences between JPA and JDO technical capabilities are quite | |
ObjectDB 2.2.5 EntityManagerFactory instantiation . Fixed a bug in comparison of collections to values in queries. | |
Tracking changes to new collections (in enhancement mode) after flush saved content, so changes are detected. Enhancement mode is optimized to skip this comparison | |
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 | |
NullPointerException on TreeSet load elements are loaded lazily and not ready for comparison when the tree is built. Build 2.7.6_02 | |
ObjectDB 2.5.0 with no wildcard characters. Fixed support of embedded objects comparison in queries. Fixed an ArrayIndexOutOfBoundsException in serializing entity objects. |