-->
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.  [ 2 posts ] 
Author Message
 Post subject: XML Column in database.
PostPosted: Mon Jan 07, 2008 6:09 am 
Newbie

Joined: Fri Jan 05, 2007 5:36 am
Posts: 16
Hi,

I have a problem when there is an xml column in the database.
It's like in this example:

<cars>
<car name="saab" />
<car name="ferrari" />
<car name="volvo" />
</cars>

I would like to get this as an list of cars in my object.
Like this:

IList<Car> dealer.Cars;

Is there a good way to convert the xml to a list of objects?



Cheers,

Yagami.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 07, 2008 6:43 pm 
Regular
Regular

Joined: Wed Jan 25, 2006 1:11 am
Posts: 118
Location: Copenhagen, Denmark
As far as i know nHibernate does not support the XML datatype, however you can get the effect you are looking for by implementing a custom type as described in 5.2.3 in the nhibernate reference documentation


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

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.