About equals



... orm.xml formats. Added implementation of equals to JPA Metamodel attributes. Fixed ObjectDB OSGi bundle ...



The JDOPermission class is for operations that are reserved for JDO implementations and should not be called by other code.(Class of JDO)


String Encoding Issue

Hi all Encounter a character encoding issue when i try to retrieve a String column containing Chinese character. Retrieve a String column on odb file.  em = emf.createEntityManager(); Query query = em.createQuery("SELECT fu FROM FarmUnit fu"); But, when try to print the value out as: ... the string that was stored (e.g. by comparing them using equals ) then this will require a fix of ObjectDB. Otherwise, this issue is ...


Null pointer exception being thrown from within ObjectDB.

EXCEPTION/DESCRIPTION: Bug Version: 1.04 Priority: Normal Status: Active Replies: 1 Type:  Bug ...


openejb jpa jaas module

    hello , i've finished jpa jaas module. Here it is :   package com.bayner.auth; import com.bayner.jpa.Principals; import com.bayner.jpa.UserInfo; import com.bayner.jpa.UserPrincipal; ... ) ; if ( password. equals ( pass ) ) { ...


Query on Embedded Primary Key?

Hi, I am trying to use Embedded Primary Key - but seems I can't retrieve them correctly with the query below - the query seem to work fine for other field (in the code = primkeycopy). The error I get when is below - it complains about a casting issue. Let me know how to fix it - Thanks  EKK   ...   @ Override public boolean equals ( Object obj ) { Primkey2 x = ( ...


Different behavior for casting and not casting

Hi, Please use attached db for testing the queries. Query #1 which works and selects a few entities: SELECT DISTINCT $1 FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied $1 WHERE $1.qubletFRAGMENTMAP.get('com.lexware.vereinsverwaltung.abrechnung.api.model.mitglied.MitgliedVertraegeFragment') IS NOT NULL Query #2 which is equal to the previous one though includes a casting and returns NO entities: Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...


[ODB1] Chapter 7 - JDOQL Queries

Explains how to use JDOQL, the Java/JDO Query Language.... of user persistent classes (as in Java), but use the equals( ... ) method for system types ( String , Date , ArrayList , ...


preUpdate-methods are called when there is no change

Dear Support Team, we ran into some difficulties with a database. When fetching a entity using the EntityManager and afterwards calling "iterator().next()" a transaction begin/commit will end up in updating the Entity even there was no change. We attached a simplified test case where only 2 reduced versions of the entities are available. But it still shows the unexpected behavior. To reproduce just run the "EntryPoint" class. ... HashMap ) should have a meaningful hashCode and equals methods based on the object id or content (and not the methods that ...


Conditional Selection

I have an Employee class that holds... private String firstName = "-"; private String middleName = "-"; private String lastName = "-"; I do not require that an Employee's middle name be provided so when I use... SELECT firstName + " " + middleName + " " + lastName FROM Employee     ORDER BY lastname, firstname, middleName I may end up with the result list of... ... ) if ( emp. getMiddleName . equals ( "-" ) ) list. add ( emp. ...