About equals

manual

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.... ) on strings in queries follow the logic of Java's equals , comparing the content rather than the identity. Date ... , != ) on date values in queries follow the logic of equals , comparing the content rather than the identity. ...

 
api-jdo

equals(obj)

Check the class and class name and object type.(Method of javax.jdo.identity.SingleFieldIdentity)

 
api-jpa

equal(x, y)

Create a predicate for testing the arguments for equality.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

equal(x, y)

Create a predicate for testing the arguments for equality.(Method of javax.persistence.criteria.CriteriaBuilder)

 
doc

equals(arg0)

(Method of java.security.Permission)

 
doc

equals(arg0)

(Method of java.security.BasicPermission)

 
forum_thread

Metamodel Attribute NOT EQUALS to same Attribute in a different EntityManager

Attribute from Metamodel initialized on @PostConstruct event IS NOT EQUALS of any Attribute from Metamodel of a different EntityManager. I am testing one application over Spring Web MVC and I can not post one Simple Test Case. The problem is it: If I have two moments of initialization of "javax.persistence.metamodel" from EntityManager and these two metamodels come from different EntityManagers and the one of these is on a @PostConstruct event, they return not equals Attributes using the same entity.   ... from Metamodel initialized on @PostConstruct event IS NOT EQUALS of the same Attribute from Metamodel of a differente EntityManager ... on a @Controller @RequestMapping event, they return not equals Attributes using the same entity.   sameAttributeOnPostConstruct. equals ( sameAttributeOnController ) //is false ...

 
forum_thread

Question about overriding default equals and hashcode

Hello Support, I have overrided equals and hashcode method in my entities beans. I don't know if you use these methods in your objectdb implementation. ( for comparing bean ? ) If yes, does it have an impact on performance of database ? Regards, Xirt   ... Hello Support, I have overrided equals and hashcode method in my entities beans. I don't know if ... ObjectDB does not usually use  equals and hashCode of entity classes. They could be used, ...

 
forum_thread

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

 
issue

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 Bug Version: 1.04 Priority: Normal Status: Closed Replies: 4 Type:  Bug ...