Hello,
Thanks for taking the time to read this.
I used JoinedSubClass to map these classes together.
public class A
{
public virtual int ID { get; set; }
public virtual DateTime CreatedDate { get; set; }
public virtual DateTime ModifiedDate { get; set; }
}
public class B : A
{
public virtual string BName { get; set; }
}
public class C : A
{
public virtual string CName { get; set; }
}
public class D : C
{
public virtual string DName { get; set; }
}
I am trying to avoid hibernate selecting all the joined sub class
tables when I what just want the class A root table retrieved from the
database, to fill just class A.
Hibernate tries to select all join subclass tables when you debug the
select statement.
It would make sense to select A,C,D when you retrieve D, which
hibernate does correctly, but not A,B,C,D, when all you want is a A.
Hope that makes sense.
Is there an option to turn that off?
Bryan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---