Multilevel vertical inheritance problem

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

    Posted 25 Mar 2010 Link to this post

    Hi,

    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" /> 
          <extension 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 <MtCorrespondent> QuickSearchCorrespondent() 
    b) public Collection <MtInventor> 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

  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 29 Mar 2010 Link to this post

    Hi Ujjwal Manna,

    We tried to reproduce the issue with similar hierarchy but with no success. Can you please share with us how you are loading the objects in the two search methods, maybe there is something specific that might help us to see the problem?

    All the best,
    Alexander
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top