Hi.

I have the following code where ORDER is a castor generated class.

ORDER order1 = new ORDER();
ORDER order2 = new ORDER();

AUFTRAG_DATEN auftrag_daten1 = new AUFTRAG_DATEN();
AUFTRAG_DATEN auftrag_daten2 = new AUFTRAG_DATEN();
auftrag_daten1.setAUFTRAGSNR("123");
auftrag_daten2.setAUFTRAGSNR("123");
auftrag_daten1.setBEFORDERUNG("befi_123");
auftrag_daten2.setBEFORDERUNG("befi_123");
order1.setAUFTRAG_DATEN( auftrag_daten1 );
order2.setAUFTRAG_DATEN( auftrag_daten2 )

System.out.println ( "Equal: " + order1.equals(order2) );
 
The surpsise is that the order1.equals(order2) give me FALSE. Is this normal
behaviour. Should not compare the two identical objects and give me TRUE?
Thankie for you answer.


regards,
Marius Florian Mailat

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to