‎2004 Aug 04 1:55 PM
Hello,
I am trying to write an example program using Object Services and Flight Model.An agent class is being generated when I create the persistent class, but this class does not have the public attribute 'agent', which had to be in. According to manuals, this has to be a static attribute of the singleton agent class. Do I oversee stg. during class generation?
Regards,
Sükrü
‎2004 Aug 05 9:27 AM
‎2004 Aug 05 11:28 AM
I don't know if it helps but I checked some of my Object Services Classes and all of my Agent classes do have the public attribute Agent. I didn't have to add it manually or do anything special when I generated the Persistent Class. The following is the attribute def in the agent class:
AGENT Static Attribute Public Type Ref To ZCA_ES_ASAP_ASS_PERS Class Agent - Singleton
Perhaps you simple have a bug in the persistent class generator in your system.
‎2005 Sep 06 12:57 PM
hi
has this been solved somehow? I'm trying to generate my own persistent classes and there is no CLASS_CONSTRUCTOR method nor AGENT attribute in the generated agent class.
strange enough the provided sample classes cl_spfli_persistent and ca_spfli_persistent do seem to work like described in the documentation (and have the CLASS_CONSTRUCTOR method and AGENT attribute).
any hints are welcome!
regards
nicola
Message was edited by: Nicola Fankhauser
‎2005 Sep 06 2:05 PM
hello
I managed to solve this very strange behavior: ONLY activate the persistent class itself after mapping the fields. if you activate ALL classes at the same time (i.e. your persistent class, and the two generated agent classes), it seems that it won't generate the needed code in the agent classes (method CLASS_CONSTRUCTOR and AGENT attribute).
regards
nicola
Message was edited by: Nicola Fankhauser
‎2005 Sep 06 3:18 PM