Hi all,

For a project I upgraded from a Spring/NHibernate configuartion based
on Spring 1.1.2 and NHibernate 2.0 to a configuration of Spring 1.3.0
and NHibernate 2.1. Using the old configuration the application just
runs fine, including the object mappings. To map the objects we're
using the NHibernate.Mapping.Attributes assembly, so annotated
classes  will provide the database objects instead of the separate xml
files. This was working just fine, but after upgrading everything to
the new versions I'm having trouble with subclasses in our model.

More specifically: "These classes referenced by 'extends' were not
found" is thrown as a ConfigurationException.

All classes that subclass another model class are listed in the
exception.

I'm using the following
[Class(Name= "Organisatie")]
    public class Organisatie : AbstractSaveableObject,
IInactivatableObject, IEquatable<Organisatie>
    { .. }

 [JoinedSubclass(-2, Name="Zorgkantoor", Extends =
"TisWeb.Model.model.organisatie.Organisatie, TisWeb.Model")]
    [Key(-1, Column = "Id")]
    public class Zorgkantoor : Organisatie
   { .. }

I tried both notations on the SubClasses using the ExtendsType and the
Extends attribute, but with the same effect.  All superclasses can't
be found when processing the configuration. Is there a big difference
in mapping objects between NHibernate version 2.0 and the newer 2.1
version?

Does anyone have a suggestion why this error occurs, it's a bit
confusing because in the older version there is no problem with these
mappings. The subjects I could find on this matter don't provide much
help.

Best regards,
Bram


--

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=.


Reply via email to