<?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 Class and Deep Structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-and-deep-structures/m-p/4260011#M1016689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no you can't do this because the persistent object essentially has a one-to-one mapping to a database table, and the database does not support deep structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do, is define your data model to support the deep structure, for example a table for header records, then other tables for item records, and even another one for a one-to-many mapping to an item record - or even many-to-many mappings. Then you generate persistent objects for each database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you build a utility class that handles all the interaction with the persistent objects. This class abstracts the actual interaction with the persistent objects and you design it's interface to support your deep structures. This class should also implement transactional locking and data integrity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 01:55:41 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2008-08-12T01:55:41Z</dc:date>
    <item>
      <title>Persistent Class and Deep Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-and-deep-structures/m-p/4260010#M1016688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I Include Deep Structures in a persistent class?&lt;/P&gt;&lt;P&gt;If so, will the get/sets als be created for the lower level fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 20:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-and-deep-structures/m-p/4260010#M1016688</guid>
      <dc:creator>mike_mcinerney</dc:creator>
      <dc:date>2008-08-11T20:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent Class and Deep Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-and-deep-structures/m-p/4260011#M1016689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no you can't do this because the persistent object essentially has a one-to-one mapping to a database table, and the database does not support deep structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do, is define your data model to support the deep structure, for example a table for header records, then other tables for item records, and even another one for a one-to-many mapping to an item record - or even many-to-many mappings. Then you generate persistent objects for each database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you build a utility class that handles all the interaction with the persistent objects. This class abstracts the actual interaction with the persistent objects and you design it's interface to support your deep structures. This class should also implement transactional locking and data integrity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 01:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-and-deep-structures/m-p/4260011#M1016689</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-08-12T01:55:41Z</dc:date>
    </item>
  </channel>
</rss>

