I removed the class property for the Customer to Order (but keeped the « listOrder » relationship)
When I set the customer to the order, it runs fast.
<com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message ‘<Customer 0x72c7423b> valueForKey(): lookup of unknown key: 'listOrder'.
This class does not have an instance variable of the name listOrder or _listOrder, nor a method of the name listOrder _listOrder, getListOrder, or _getListOrder' object ‘{...}' key 'listOrder'>
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleQueryWithUnboundKey(NSKeyValueCoding.java:1377)
at com.webobjects.eocontrol.EOCustomObject.handleQueryWithUnboundKey(EOCustomObject.java:1545)
at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:494)
at com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.valueInObject(NSKeyValueCoding.java:894)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at Customer.listeOrder(_Customer.java:890)