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: Mapping to XMLDocument
PostPosted: Thu Mar 05, 2009 6:40 pm 
Newbie

Joined: Wed Feb 11, 2009 4:06 pm
Posts: 4
I'm new to NHibernate, perhaps someone can point me in the right direction. I have successfully mapped a database row to custom class that basically instantiates a model of that row. That's fine.

In some cases I don't need to do anything with the data, just pass it along to other code that wants an XMLDocument object. Rather than translate the data to a custom class then translate it to another form I'd like to do it in one step. Is it possible to make a mapping that would create an XMLDocument with XMLNodes that represent the rows and columns in the query?

SQLServer can provide query results as XML but we've committed to using NHibernate for database abstraction anyway.

Thanks for your time


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.