ObjectDB Database Search

51-100 of 139 results

Query filter comparing Dates

am comparing 2 dates which should be equal because they are showing exactly same inner millisecond count ... (ClassWithDate.class, "this.date. equals (datum)"), date); assertQueryResultSize(1, pm.newQuery(ClassWithDate.class, "this.type. equals (\""+ TYPE +"\") && this.date. equals (datum)"), date); // these queries

Composite Index error 328

) { this.groupsHash = groupsHash; } @Override public boolean equals (Object o) { if (this == o) return true; if (o ... == that.programType && flags == that.flags && Objects. equals (usrName, that.usrName) && Objects. equals (mail, that.mail) && Objects. equals (regDate, that.regDate) && Objects. equals (regEnd, that.regEnd

Should derived fields of an EmbeddedId be manually maintained by app code?

parent) { this.cachedKey = id; this.cont = parent; } @Override public boolean equals (Object o) { if(!(o ... ) o; return cont. equals (other.cont) && cachedKey. equals (other.cachedKey); } @Override public int ... ; this.prnt = parent; } @Override public boolean equals (Object o) { if(!(o instanceof ECompoundKeyMapSubItemId

Problem witch CriteriaBuilder isMember(..)

Container ( equal and hash methods in Testclass are implemented). My problem is, that CriteriaBuilder ... "; Predicate predicate = cb.isMember(searchobject,root. get("testlist2")); works as expected. the equal -query Testclass searchobject = new Testclass(1,2); Predicate predicate = cb. equal (a_root

Object as parameter results in exception

Hi,    I've got a simple JPA2 Criteria query which fails when doing an object equality ... p = c.from(managedClass);   c.select(p);   c.where(     qb. equal (p.get("id"), primaryKey),     qb.and(qb. equal (p.get("owningCompany"), company)));  

Help with 'not like/lower' query

.getFieldName()); Predicate predicate; if(property.getOperator(). equals (Operator.LIKE)){ predicate ... .getWildcardValue()); }else if(property.getOperator(). equals (Operator.NOT_LIKE)){ predicate ... .getWildcardValue()); }else if(property.getOperator(). equals (Operator. EQUAL )){ predicate

General Performance Issues Illustrated with a Specific Method

(). equals ("")) { return cs; } String jpql; Map m; m = new HashMap(); jpql = "select new lk.gov ... ); return hash; } @Override public boolean equals (Object object) { if (!(object instanceof Client ... != null && !this.id. equals (other.id))) { return false; } return true; } @Override public String

New to Product & Having An Issue

="SELECT d FROM Department AS d WHERE d.domainId. equals (:id)") }) public class Department implements ... ) { this.employees = employees; } public boolean equals (Object obj) { if(((Department) obj).getDomainId() == null || this.domainId == null) return false; return this.domainId. equals (obj); } } package test

CriteriaQuery .where() for multiple conditions

.where(criteriaBuilder. equal (root.get("name"), name)); criteriaQuery.where(criteriaBuilder. equal (root.get("surname ... is equal to the given name OR surname is equal to the given surname. Is it possible to make ... .and(criteriaBuilder. equal (root.get("name"), name), criteriaBuilder. equal (root.get("surname"), surname

EntityManager JPA or JDO impl and different behavior

we are dealing with maps, the " equals " and "hashcode" methods on the key object have to be overridden ... " is called, the object is being lazy loaded. So if the " equals " or "hashcode" method use ... the second junit test, you will see heaps of calls like: AttributeName EQUALS method called

Apparent Lazy Loading issues.

to be two more. First, as we are dealing with maps, the " equals " and "hashcode" methods on the key ... with this is, when "find" is called, the object is being lazy loaded. So if the " equals " or "hashcode ... at the output from the second junit test, you will see heaps of calls like: AttributeName EQUALS method

Searching lists within objects

;                cb. equal ... ;          cb. equal (attributeJoin.get("name"), "firstname ... ;   cb. equal (attributeValuesJoin2.get("value"), "Baldwin"),      

Help with JPA2 Criteria and conditional operator grouping

(root);   c.where(     builder.and(builder. equal (namePath, nameParam),                builder. equal ... ;  builder.or(             builder. equal

TYPE Expression

. equal (e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o ... ) when trying to get a result list. leaving it out removes the error, other filters like string equals ... ;  cq.select(e);         cq.where(cb. equal (e.type(), cb

Field not persisted in abstract class with two level of nesting

;   @Override     public boolean equals (Object obj) {      ... == null ? value == null : x.value. equals (value));     }     @Override ... ;  }     @Override     public boolean equals (Object obj) {  

Criteria Query results in a NoResultException instead of returning object

. equal (         root.get(identityNameProp.getName()), obj ... (builder. equal (root.get(identityNameProp.getName()), obj.getName())); To build a query that is equivalent ... (); predicates.add(builder. equal (root.get("name"), "demo")); criteria.where(predicates.toArray(new

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

; this.container = parent; } @Override public boolean equals (Object o) { if(!(o instanceof CompoundKeyMapItemId)) return false; CompoundKeyMapItemId other = (CompoundKeyMapItemId) o; return container. equals (other.container) && cachedKey. equals (other.cachedKey); } @Override public int hashCode() { //Follow bloch

CriteriaBuilder.nullif(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression nullif (    Expression  x,     Expression  y ) Create an expression that tests whether its argument are equal , returning null if they are and the value of the first expression if they are not

CriteriaBuilder.nullif(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression nullif (    Expression  x,    Y y ) Create an expression that tests whether its argument are equal , returning null if they are and the value of the first expression if they are not. Parameters: x

javax.jdo.annotations.NullValue

inherited from class java.lang.Enum compareTo , compareTo , describeConstable , equals ... .Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.annotations.PersistenceModifier

, describeConstable , equals , getDeclaringClass , hashCode , name , ordinal , toString , valueOf Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.annotations.SequenceStrategy

.lang.Enum compareTo , compareTo , describeConstable , equals , getDeclaringClass , hashCode , name , ordinal , toString , valueOf Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.annotations.VersionStrategy

Method inherited from class java.lang.Enum compareTo , compareTo , describeConstable , equals ... .Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.identity.SingleFieldIdentity

boolean equals (Object obj) Check the class and class name and object type. If restored from ... java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

FetchGroup.hashCode() - JDO Method

JDO Method in javax.jdo.FetchGroup int hashCode () Return the hashCode for this instance. The hash code should combine both the class and fetch group name. The hash codes for two equal instances must be identical. Return: the hash code Since: JDO 2.2

javax.jdo.JDOCanRetryException

.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDODataStoreException

, printStackTrace , setStackTrace , toString Method inherited from class java.lang.Object equals

javax.jdo.JDODetachedFieldAccessException

inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOException

class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOFatalDataStoreException

, setStackTrace , toString Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOFatalException

inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOFatalInternalException

, toString Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOFatalUserException

, printStackTrace , setStackTrace , toString Method inherited from class java.lang.Object equals , getClass

javax.jdo.JDOHelper

inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDONullIdentityException

, printStackTrace , setStackTrace , toString Method inherited from class java.lang.Object equals

javax.jdo.JDOObjectNotFoundException

, toString Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOOptimisticVerificationException

, setStackTrace , toString Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOReadOnlyException

, printStackTrace , setStackTrace , toString Method inherited from class java.lang.Object equals , getClass

javax.jdo.JDOUnsupportedOptionException

, setStackTrace , toString Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOUserCallbackException

equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.JDOUserException

.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.PersistenceManager

will compare equal to the ObjectId returned by only one among all JDO instances associated

PersistenceManager.getObjectId(pc) - JDO Method

transactions. Within a transaction, the ObjectId returned will compare equal to the ObjectId returned by

PersistenceManagerFactory.addFetchGroups(groups) - JDO Method

FetchGroup s. The replaced FetchGroup s become unscoped. Match is based on identical class and equal

PersistenceManagerFactory.removeFetchGroups(groups) - JDO Method

and equal name. The methods addFetchGroups , removeFetchGroups , getFetchGroups

javax.jdo.datastore.DataStoreCache$EmptyDataStoreCache

;Class pcClass) Since: JDO 2.0 Method inherited from class java.lang.Object equals , getClass

javax.jdo.listener.InstanceLifecycleEvent

from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.spi.I18NHelper

bound to the bundle Since: JDO 1.0 Method inherited from class java.lang.Object equals , getClass

javax.jdo.spi.JDOImplHelper

inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.spi.RegisterClassEvent

, toString Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait