â2014 Feb 27 9:09 AM
Hi Gurus,
I created a persistence class quite correctly following a tutorial. Afterwards, when I call the method to create my persistence class through "CREATE_PERSISTENT" method from my Actor class, I do not have any attributs of the class available.
Please, see my Class Representation:
The code generated when using "create_persistent":
DATA: actor TYPE REF TO zca_persis_test,
student TYPE REF TO zcl_persis_test,
ref1 TYPE REF TO object.
actor = zca_persis_test=>actor.
CALL METHOD actor->create_persistent
RECEIVING
* result = " Newly Generated Persistent Object
.
* CATCH cx_os_object_existing. " Object Services: Object Exists
In fact, I am expecting to have this generated code:
CALL METHOD actor->create_persistent
RECEIVING
NOM =
PRENOM =
INSCRIPTION =
AGE =
* result = " Newly Generated Persistent Object
.
* CATCH cx_os_object_existing. " Object Services: Object Exists
Have you got some idea regarding why all my attributs seems to be in private ?
Best regards.
â2014 Feb 27 9:27 AM
Can you share the generator settings of the "Persistence (O-R)" mapping?
I suspect that this might be because you have checked the - indicator for minimum interface.
BR,
Suhas
â2014 Feb 27 9:27 AM
Can you share the generator settings of the "Persistence (O-R)" mapping?
I suspect that this might be because you have checked the - indicator for minimum interface.
BR,
Suhas
â2014 Feb 27 9:33 AM