I'm pretty new to NHibernate and couldn’t find an answer to this so hope I’m posting in the right place.
I have a business object in my application which represents a university open day and there is a many-to-one association between the open data and the campus it will take place on. The mapping looks like this:
Code:
<many-to-one name="_campus" access="field" column="CampusId" class="EducationGateway.PlanIt.BusinessObjects.EstablishmentService.Campus, BusinessObjects" not-null="true"/>
The problem I’m having is that the campus object is stored in a central database and is accessed by a web service. NHibernate falls over with a could not find type exception for the Campus object. Is there any way to load a related object from a web service using NHibernate?
I know I could pull the ID from the database and then manually pull the Campus object from the service but was just curious if there was an NHiberante solution.
Thanks in advance,
Andy