New Posts New Posts RSS Feed: Link to Object with Multiple Subclasses
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Link to Object with Multiple Subclasses

 Post Reply Post Reply
Author
danielp37 View Drop Down
Newbie
Newbie


Joined: 18-Mar-2008
Location: United States
Posts: 29
Post Options Post Options   Quote danielp37 Quote  Post ReplyReply Direct Link To This Post Topic: Link to Object with Multiple Subclasses
    Posted: 17-Oct-2008 at 9:44am
I have an abstract Agreement object with many subclasses (MemberAgreement, InvestmentAgreement, etc)

I have another object that links directly to one of these Agreements but the agreement might be of any of those types or may not exist at all because it hasn't been set yet.

Normally when navigating to a link that does not exist a null entity would be returned but in this case the Agreement base class is abstract since in practice we would never have an instance of agreement but I am getting an error when traversing the link because it can't create an instance of an abstract class (which I assume is occurring when it is trying to create the null entity for Agreement). 

This isn't a huge issue to me at the moment as I can code around this but I just thought it was an interesting issue.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down