This is a migrated thread and some comments may be shown as answers.

Multilevel vertical inheritance problem

1 Answer 48 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ujjwal Manna
Top achievements
Rank 1
Ujjwal Manna asked on 25 Mar 2010, 06:28 PM

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

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 29 Mar 2010, 05:22 PM
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.
Tags
Data Access Free Edition
Asked by
Ujjwal Manna
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or