About equals

71-80 of 117Refresh
Forum
3

EntityManager JPA or JDO impl and different behavior

. However there appear to be two more. First, as we are dealing with maps, the "equals" and "hashcode" methods ... . The issue with this is, when "find" is called, the object is being lazy loaded. So if the "equals" or ... EQUALS method called for against:
Forum
2

Field not persisted in abstract class with two level of nesting

) {         super(v);     }     @Override     public boolean equals(Object obj) {         TZ1 x = (TZ1) obj;         return (x.value == null ? value == null : x.value.equals(value ... );     }     @Override     public boolean equals(Object obj) {         TZ2 x = (TZ2) obj
Forum
2

Help with JPA2 Criteria and conditional operator grouping

");     c.select(root);   c.where(     builder.and(builder.equal(namePath, nameParam),                builder.equal(conditionOnePath, true)),         builder.and(         builder.or(             builder.equal(conditionTwoPath, false),             builder.equal(conditionThreePath, false
Forum
2

Searching lists within objects

.and(                     cb.equal(attributeValuesJoin.get("value"), "Alex"),                     cb.equal ... .equal(attributeValuesJoin2.get("value"), "Baldwin"),                     cb.equal(attributeJoin2
Forum
2

TYPE Expression

.equal(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o ... string equals etc. work just fine? thanks for any help! PS: Using ODB 2.3.3 Alex Hi, Note ... .createQuery();         Root e = cq.from(A.class);         cq.select(e);         cq.where(cb.equal(e
Issue
2

Use temporary files to enable very large transactions

     public boolean equals(Object obj) {          if (obj instanceof ModelElement && this.getUid() != null) {              return this.getUid().equals(((ModelElement)obj).getUid());          }          return super.equals(obj);      }      @Override      public final String getUid
Forum
2

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

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 Item 8. int
Forum
2

Criteria Query results in a NoResultException instead of returning object

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

Date field Index is corrupted due to time change

(mapToCli);             setMapFromCli(mapFromCli);          }                 public boolean equals ... other = (DateTime)o;             return id.equals(other.getId()) && version.equals(other.getVersion
Issue
2

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ...         public boolean equals(Object obj) {             return name.equals(((MyKeyEntity)obj).name