<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add attribute to generated persistent class - with references in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423857#M1738440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;i'm working with generated persistent classes where I use object references to an other generated class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example:&lt;/P&gt;&lt;P&gt;The table OBJECT contains a foreign key of the table OBJECTTYPE. I generated them over the persistence manager in SE24 - and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now added another field over SE11 to the table OBJECT. Then I want to add this field as attribute to the persistence class belated.&lt;/P&gt;&lt;P&gt;If I want to activate the class I get an error: "&lt;STRONG&gt;Only methods of the superclass can be redefined&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not change atrributes of a class, which accesses object references to other persistent classes!? I have to generate everything again!?&lt;/P&gt;&lt;P&gt;Or I have to do some changes in the Agent or the Base Agent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for some help,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 12:56:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-17T12:56:44Z</dc:date>
    <item>
      <title>Add attribute to generated persistent class - with references</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423857#M1738440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;i'm working with generated persistent classes where I use object references to an other generated class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example:&lt;/P&gt;&lt;P&gt;The table OBJECT contains a foreign key of the table OBJECTTYPE. I generated them over the persistence manager in SE24 - and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now added another field over SE11 to the table OBJECT. Then I want to add this field as attribute to the persistence class belated.&lt;/P&gt;&lt;P&gt;If I want to activate the class I get an error: "&lt;STRONG&gt;Only methods of the superclass can be redefined&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not change atrributes of a class, which accesses object references to other persistent classes!? I have to generate everything again!?&lt;/P&gt;&lt;P&gt;Or I have to do some changes in the Agent or the Base Agent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for some help,&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 12:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423857#M1738440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add attribute to generated persistent class - with references</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423858#M1738441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just have to go back to the persistence screen and add the attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423858#M1738441</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-05-17T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add attribute to generated persistent class - with references</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423859#M1738442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claudio,&lt;/P&gt;&lt;P&gt;thanks for this very fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I go back to the persistence screen and then I could see the new field of the table.&lt;/P&gt;&lt;P&gt;When I add this as an attribute I get the error - because in this class is an object reference of another class..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423859#M1738442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add attribute to generated persistent class - with references</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423860#M1738443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh... did not understand at first. Sorry, can't help you here &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1434/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423860#M1738443</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-05-17T14:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add attribute to generated persistent class - with references</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423861#M1738444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to redefine a class, which has a key/object reference of another class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think &lt;A href="http://saptechnical.com/Tutorials/OOPS/Redefine/Index.htm"&gt;here &lt;/A&gt;is an other description of the problem - and a solution, but not while using the generator of persistent classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423861#M1738444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T14:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add attribute to generated persistent class - with references</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423862#M1738445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andreaz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add new fields to the table after you have generated the Persistent class, you need to visit the "Persistent Representation" and include the newly added fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-attribute-to-generated-persistent-class-with-references/m-p/9423862#M1738445</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-05-17T14:57:41Z</dc:date>
    </item>
  </channel>
</rss>

