These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NHibernate & Web Services
PostPosted: Mon Sep 17, 2007 9:34 am 
Newbie

Joined: Mon Sep 17, 2007 9:20 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.