Hi,

Is nested joined-subclass supported in Nhibernate.

If yes how do i go about implementing it using Fluent Nhibernate.

public class Animal
{
    public virtual int Id { get; set; }
    public virtual string Name { get; set; }
}

public class Cat : Animal
{
    public virtual int WhiskerLength { get; set; }
    public virtual int ClawCount { get; set; }
}

public class Dog : Animal
{
    public virtual int TailWagRate { get; set; }
}

public class BullDog: Dog
{
   public virtual int PropA {get;set;}
}

In the example above, I can implement the first 3 classes without any
issues.
I got the example from teh link below.
http://stackoverflow.com/questions/296834/fluent-nhibernate-how-to-map-a-subclass-one-to-one/298329#298329

 I am having trouble with mapping the BullDog class. It requires a
nested joined-subclass.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to