Multilevel vertical inheritance problem

1 posts, 0 answers
  1. Ujjwal Manna
    Ujjwal Manna avatar
    8 posts
    Member since:
    Dec 2009

    Posted 25 Mar 2010 Link to this post

    Hi All,

    Currently I am facing an urgent issue for which I don't have any clue. My app.config looks like below : 


     

     

     

     

     

    <class

     

     

    name="MtName">

     

         <

     

     

    extension key="db-key-generator" value="HIGHLOW" />

     

          <

     

     

    xtension key="db-table-name" value="NAME" />

     

                <

     

     

    field name="nameKey">

     

                  <

     

     

    extension key="db-column">

     

                    <

     

     

    extension key="db-column-name" value="NAMEKEY" />

     

                  </

     

     

    extension>

     

                </

     

     

    field>           

     

                <

     

     

    field name="name" >

     

                  <

     

     

    extension key="db-column">

     

                    <

     

     

    extension key="db-column-name" value="NAME" />

     

                  </

     

     

    extension>

     

                </

     

     

    field>                 

     

               

                <

     

     

    extension key="db-class-id" value="{no}" />

     

      <

     

     

    class>

     

      <

     

     

    class name="MtNameIndividual">

     

                <

     

     

    extension key="db-inheritance" value="vertical" />

     

                <

     

     

    extension key="db-table-name" value="NAMEINDIVIDUAL" />

     

                <

     

     

    field name="birthday">

     

                  <

     

     

    extension key="db-column">

     

                    <

     

     

    extension key="db-column-name" value="BIRTHDAY" />

     

                  </

     

     

    extension>

     

                </

     

     

    field>

     

                <

     

     

    field name="companyKey">

     

                  <

     

     

    extension key="db-column">

     

                    <

     

     

    extension key="db-column-name" value="COMPANYKEY" />

     

                  </

     

     

    extension>

     

                </

     

     

    field>

     

                <

     

     

    field name="firstName">

     

                  <

     

     

    extension key="db-column">

     

                    <

     

     

    extension key="db-column-name" value="FIRSTNAME" />

     

                  </

     

     

    extension>

     

                </

     

     

    field>

     

       </

     

     

    class>

     

    <

     

     

    class name="MtInventor">

     

        <

     

     

    extension key="db-table-name" value="VWINVENTORINDIVIDUAL" />

     

           <

     

     

    extension key="db-inheritance" value="vertical" />

     

           <

     

     

    field name="companyName">

     

              <

     

     

    extension key="db-column">

     

                <

     

     

    extension key="db-column-name" value="COMPANYNAME" />

     

               </

     

     

    extension>

     

            </

     

     

    field>

     

    </

     

     

    class>

     

    <

     

     

    class name="MtCorrespondent">

     

        <

     

     

    extension key="db-table-name" value="VWCORRESPONDENTINDIVIDUAL" />

     

         <

     

     

    extension key="db-inheritance" value="vertical" />

     

          <

     

     

    field name="companyName">

     

                  <

     

     

    extension key="db-column">

     

                    <

     

     

    extension key="db-column-name" value="COMPANYNAME" />

     

                  </

     

     

    extension>

     

           </

     

     

    field>           

     

     </

     

     

    class>

     

     

     

     

    Hierarchy :=>

     

      Step 1) MtNameIndividual : MtName

      Step 2A) MtInventor : MtNameIndividual 

      Step 2B) MtCorrespondent: MtNameIndividual 

    List of scenarios :-

    1) I have two different methods for fetching data

       a) public 

     

     

    Collection&ltMtCorrespondent &gt QuickSearchCorrespondent()

     

     

     

       b) public 

     

     

    Collection&ltMtInventor> QuickSearchInventor()

     

     

     

    Scenario 1) After Building my application, the method which is executed first , works properly, Say QuickSearchCorrespondent is called first then its working fine, Now if I execute QuickSearchInventor, it is giving me error.

    "Error in retrieving records :(

    Incompatible states: supplied stateMemotech.Directories.Names.NameComponent.Model.MtInventor: Required Memotech.Directories.Names.NameComponent.Model.MtCorrespondent)"

    Scenario 2) After Building my application, the method which is executed first , works properly, Say QuickSearchInventor is called first then its working fine, Now if I execute QuickSearchCorrespondent , it is giving me error.

    "Error in retrieving records :(

    Incompatible states: supplied stateMemotech.Directories.Names.NameComponent.Model.MtCorrespondent: Required Memotech.Directories.Names.NameComponent.Model.MtInventor)"

    Can you suggest me where I am wrong or what is the cause of this error ?

    Regards,
    Ujjwal

     

Back to Top