<?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 Re: Persistent Classes and Inheritance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418709#M1408963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dsp and Naimesh Patel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system (Netweaver 7.0 ehp 1) inheritance of persistent objects seems not possible. As you say the system defaults the class to "Final", and if I remove the final flag i get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in Thomas Jungs splendid series of ABAP OO tutorials (Part 3 - Persistent Objects) he actually shows an example of Persistent Classes and Inheritance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if this inheritance is possible in my system and maybe you can explain how to use the tool to generate the child class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2010 08:50:50 GMT</pubDate>
    <dc:creator>TMNielsen</dc:creator>
    <dc:date>2010-02-12T08:50:50Z</dc:date>
    <item>
      <title>Persistent Classes and Inheritance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418707#M1408961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im currently having the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a persistent class called ZCL_COMMENT which is mapped to a database table.&lt;/P&gt;&lt;P&gt;Now another persistent class called ZCL_COMMENT2 has to inherit from this class. I defined ZCL_COMMENT as the superclass and everything seems to work fine.&lt;/P&gt;&lt;P&gt;But how can i now define new attributes? In the persistent data mapper i cant choose another database table where the additional data for new attributes could be saved. Do i have to add extra field to the database table of ZCL_COMMENT to achieve this? The table might get quite big, so this wouldnt be an optimal solution. Perfectly would be a solution where the complete persistent data of ZCL_COMMENT2 would be stored in an extra table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;dsp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 18:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418707#M1408961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T18:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent Classes and Inheritance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418708#M1408962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you create a persistent class, system defaults the class to "Final". If the class is Final, you must not inherit any other class from that class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, instead of inheriting the CLASS2 from CLASS1, use the CLASS1 inside the class CLASS2 by creating the attribute reference to CLASS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 18:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418708#M1408962</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-11-20T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent Classes and Inheritance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418709#M1408963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dsp and Naimesh Patel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system (Netweaver 7.0 ehp 1) inheritance of persistent objects seems not possible. As you say the system defaults the class to "Final", and if I remove the final flag i get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in Thomas Jungs splendid series of ABAP OO tutorials (Part 3 - Persistent Objects) he actually shows an example of Persistent Classes and Inheritance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if this inheritance is possible in my system and maybe you can explain how to use the tool to generate the child class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 08:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-inheritance/m-p/6418709#M1408963</guid>
      <dc:creator>TMNielsen</dc:creator>
      <dc:date>2010-02-12T08:50:50Z</dc:date>
    </item>
  </channel>
</rss>

