After poking around some more I've discovered that such nested components require me to set the "class" attribute explicitly, which seems not to be required in more simple scenarios (with no inheritance).
Anyway this resolved my issue, might be useful to know. On Jul 14, 4:44 pm, Roni Dover <[email protected]> wrote: > Hi all! > > I'm using the mix of table per class hierarchy and table per subclass > to map my inheritance as shown in the documentation. > Everything was working perfectly until I tried throwing components > into the mix... > > When I position a component inside a <join> element like so: > > <subclass name="TestMapping.DerivedEntity, TestMapping, > Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" discriminator- > value="SomeEntityKey"> > <join table="SomeEntity"> > <key column="DerivedEntityID" /> > <component name="ResourceConnector" insert="true" > update="true"> > <property name="Connection" type="String"> > <column name="Connection" /> > </property> > </component> > </join> > </subclass> > > Nhibernate seems to complain that the subclass (in this case > DerivedEntity) does not contain the property which resides in the > component class (in this case "Connection"). > > Specifically the error message in this case is: --> > NHibernate.PropertyNotFoundException: Could not find a getter for > property 'Connection' in class 'TestMapping.DerivedEntity'. > > Whereas of course Connection resides in the ResourceConnector class. > > I'd appreciate any help! > > Roni. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
