Here's another attempt to modify the mapping as I've seen done
similarly in other examples. The exception is telling me that I have
to map the Id property in my subclass, which I don't understand.
new mapping:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="MappingTests" namespace="MappingTests">
<class name="ConcreteFoo">
<id name="Id">
<generator class="identity" />
</id>
<property name="Name" />
<joined-subclass name="IFooInt">
<key />
<joined-subclass name="ConcreteFoo" entity-name="FooInt">
<key />
</joined-subclass>
</joined-subclass>
</class>
</hibernate-mapping>
changed this line in persistence code to:
session.Save("FooInt", foo);
exception:
NHibernate.PropertyNotFoundException : Could not find a getter for
property 'Id' in class 'MappingTests.IFooInt'
If I add the Id property to the IFooInt interface (something I don't
want to do), I get the same exception, but about the "Name" property,
which I definitely can't add to my IFooInt interface.
Please help. Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---