ObjectDB Database Search

1-50 of 139 results

Comparison in JPQL and Criteria API

- JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal != The two sets differ in the Equal and the Not Equal operators. JPQL follows the SQL notation, where Java uses ... . Equality operators (=, , == , != ) on strings in queries follow the logic of Java's equals

Implement "equals" method

Will something unexpected happen, if I implement my own " equals " method for my entities? e.g ... DB requests and they fail to be equal (why actually?). Thus both of them are in the Set, where actually there should be only one (the same). itsme Martin Petzold ObjectDB does not use the equals

Metamodel Attribute NOT EQUALS to same Attribute in a different EntityManager

Attribute from Metamodel initialized on @PostConstruct event IS NOT EQUALS of the same Attribute ... and the other on a @Controller @RequestMapping event, they return not equals Attributes using the same entity.   sameAttributeOnPostConstruct. equals (sameAttributeOnController) //is false  

CriteriaBuilder.equal(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate equal (   Expression  x,    Object y ) Create a predicate for testing the arguments for equality . Parameters: x - expression y - object Return: equality predicate Since: JPA 2.0

CriteriaBuilder.equal(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate equal (   Expression  x,    Expression  y ) Create a predicate for testing the arguments for equality . Parameters: x - expression y - expression Return: equality predicate Since: JPA 2.0

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 ... = ...; Root root = ...; java.sql.Date myDate = ...; Predicate predicate = builder. equal (root ... ;      Predicate predicate = cb. equal (root.get("date"), cb.literal(myDate

Question about overriding default equals and hashcode

Hello Support, I have overrided equals and hashcode method in my entities beans. I don't know ... use  equals and hashCode of entity classes. They could be used, however, if specified explicitly ... " give me some trace like that : org.jvnet.jaxb2_commons.lang. Equals % org.jvnet.jaxb2_commons.lang.HashCode

JPA Criteria API Queries

concatenation operations. String based JPQL queries and JPA criteria based queries are equally ... ). Comparison expressions ( equal , notEqual , gt , ge , lt , le , between , isNull , ...) Logical expressions

JPA Query Expressions (JPQL / Criteria)

( equal , notEqual , gt , ge , lt , le , between , isNull , ...) Logical expressions ( and , or , not , isTrue ).

Query Parameters in JPA

is equal to :name , which is a parameter that serves as a placeholder for a real value. Before the query

CRUD Database Operations with JPA

coordinate is greater or equal to 100 are deleted. All the other Point objects are updated. Chapter 3

javax.persistence.criteria.CriteriaBuilder

Predicate equal (Expression  x, Expression  y) Create a predicate for testing the arguments for equality . Parameters: x - expression y - expression Return: equality predicate Since: JPA 2.0 Predicate equal (Expression  x, Object y) Create a predicate for testing

Different behavior for two equal queries

Hi, I've got two equal queries though they behave differently: SELECT FROM com.quasado.foundation.communication.contact.individual.IndividualContact $1 WHERE (($1.organisation.name LIKE '%Q%')) This correctly returns one entry from my database SELECT FROM com.quasado.foundation.communication

[ODB1] Chapter 4 - JDO Metadata

the indexed field. Both equality ( == , != ) and comparison ( = ) queries are supported by value indexes ... . Only equality ( == , != ) queries are supported by reference indexes. Fields of value types ... field is defined as non embedded, an index on that field is a reference index. In that case equality

FetchGroup.equals(other) - JDO Method

JDO Method in javax.jdo.FetchGroup boolean equals (   Object other ) Return whether this instance is equal to the other. The equals method must compare the class for identity and the fetch group name for equality . Return: whether this instance is equal to the other Since: JDO 2.2

IntIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.IntIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

ObjectIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.ObjectIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

LongIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.LongIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

CharIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.CharIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

ByteIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.ByteIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

ShortIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.ShortIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

StringIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.StringIdentity boolean equals (   Object obj ) Determine if the other object represents the same object id. Parameters: obj - the other object Return: true if both objects represent the same object id Since: JDO 1.0

SingleFieldIdentity.equals(obj) - JDO Method

JDO Method in javax.jdo.identity.SingleFieldIdentity boolean equals (   Object obj ) Check the class and class name and object type. If restored from serialization, class will be null so compare class name. Parameters: obj - the other object Return: true if the class or class name is the same Since: JDO 1.0

CriteriaBuilder.le(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate le (   Expression  x,    Number y ) Create a predicate for testing whether the first argument is less than or equal to the second. Parameters: x - expression y - value Return: less-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.le(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate le (   Expression  x,    Expression  y ) Create a predicate for testing whether the first argument is less than or equal to the second. Parameters: x - expression y - expression Return: less-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.ge(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate ge (   Expression  x,    Number y ) Create a predicate for testing whether the first argument is greater than or equal to the second. Parameters: x - expression y - value Return: greater-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.lessThanOrEqualTo(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate lessThanOrEqualTo (   Expression  x,    Y y ) Create a predicate for testing whether the first argument is less than or equal to the second. Parameters: x - expression y - value Return: less-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.lessThanOrEqualTo(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate lessThanOrEqualTo (   Expression  x,    Expression  y ) Create a predicate for testing whether the first argument is less than or equal to the second. Parameters: x - expression y - expression Return: less-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.greaterThanOrEqualTo(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate greaterThanOrEqualTo (   Expression  x,    Y y ) Create a predicate for testing whether the first argument is greater than or equal to the second. Parameters: x - expression y - value Return: greater-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.ge(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate ge (   Expression  x,    Expression  y ) Create a predicate for testing whether the first argument is greater than or equal to the second. Parameters: x - expression y - expression Return: greater-than-or- equal predicate Since: JPA 2.0

CriteriaBuilder.greaterThanOrEqualTo(x,y) - JPA Method

whether the first argument is greater than or equal to the second. Parameters: x - expression y - expression Return: greater-than-or- equal predicate Since: JPA 2.0

[ODB1] Chapter 7 - JDOQL Queries

: Equality operators ( == , != ) compare the identity of instances of user persistent classes (as in Java), but use the equals ( ... ) method for system types ( String , Date , ArrayList , ...). String

javax.jdo.FetchGroup

- if the FetchGroup is unmodifiable Since: JDO 2.2 boolean equals (Object other) Return whether this instance is equal to the other. The equals method must compare the class for identity and the fetch group name for equality . Return: whether this instance is equal to the other Since: JDO 2.2 Set

javax.jdo.spi.JDOPermission

.BasicPermission equals , getActions , hashCode , implies , newPermissionCollection Method inherited from class java.security.Permission checkGuard , equals , getActions , getName , hashCode , implies , newPermissionCollection , toString Method inherited from class java.lang.Object equals , getClass

javax.jdo.identity.LongIdentity

Since: JDO 2.2 boolean equals (Object obj) Determine if the other object represents the same ... .SingleFieldIdentity equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.identity.IntIdentity

Since: JDO 2.2 boolean equals (Object obj) Determine if the other object represents the same object id ... .SingleFieldIdentity equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.identity.ObjectIdentity

ordering between the objects Since: JDO 2.2 boolean equals (Object obj) Determine if the other object ... equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.identity.ByteIdentity

between the objects Since: JDO 2.2 boolean equals (Object obj) Determine if the other object ... .identity.SingleFieldIdentity equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals , getClass

javax.jdo.identity.CharIdentity

equals (Object obj) Determine if the other object represents the same object id. Parameters: obj ... equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait

javax.jdo.Query

hides the name of a candidate class field if equal . Variable names must be unique and must not ... for constructing valid expressions follow the Java language, except for these differences: Equality and ordering comparisons between primitives and instances of wrapper classes are valid. Equality and ordering

javax.jdo.identity.ShortIdentity

the objects Since: JDO 2.2 boolean equals (Object obj) Determine if the other object represents ... .jdo.identity.SingleFieldIdentity equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals , getClass

javax.jdo.identity.StringIdentity

between the objects Since: JDO 2.2 boolean equals (Object obj) Determine if the other object ... javax.jdo.identity.SingleFieldIdentity equals , getKeyAsObject , getTargetClass , getTargetClassName , hashCode , readExternal , writeExternal Method inherited from class java.lang.Object equals

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.PersistenceManagerFactory

is based on identical class and equal name. The methods addFetchGroups , removeFetchGroups ... on identical class and equal name. The methods addFetchGroups , removeFetchGroups , getFetchGroups

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.VersionStrategy

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

Query.setFilter(filter) - JDO Method

the Java language, except for these differences: Equality and ordering comparisons between primitives and instances of wrapper classes are valid. Equality and ordering comparisons of Date fields and Date

javax.jdo.annotations.IdentityType

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.InheritanceStrategy

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