Hi,
I'm facing a problem that I can't make it work. I'm aware that it is a 
special case, but it could be very useful with my use of interface

I have the following classes:

   - Class *A*
   - Class *A1* extends *A*
   - Class *A2* extends *A* implement *IM*
   - Class *B* implement *IM*
   - Class *C*
   - Interface *IM*
   - Property of Class *C C_prop*
   
And the following tables:

   - Table *A*
      - column *C_id*
   - Table *A1*
   - Table *A2*
   - Table *B*
      - Column *C_id*
   - Table *C*

For the Class *A2* I want to map the property of Class *C* to column *C_id* 
of *A*. So I want to map the child property C to the parent column of A.
In the nhibernate documentation I found this in chapter 5.1.14 *"The 
<component> element maps properties of a child object to columns of the 
table of a parent class." *
So it seems to do exactly what I want to achieve.

So in mapping of Class* A* I have:

<component name="*C_prop*" class="*A2*">
        <many-to-one name="*C_prop*" class="*C*" column="*C_id*" 
unique="true"/>
</component>

I have the following error:
"Could not find a getter for property '*C_prop*' in class '*A*'"

What do I do wrong? 
Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to