-->
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.  [ 3 posts ] 
Author Message
 Post subject: Map all columns from table to IDictonary<TColumnName,TValue>
PostPosted: Wed Jul 22, 2009 8:49 am 
Newbie

Joined: Wed Jul 22, 2009 8:40 am
Posts: 5
Hello, Everybody! I begin to learn NHibernate, and I have question: Is it possible to map all columns from table to IDictonary<TColumnName,TValue>, where TColumnName is string name of column and TValue is value? And If it possible can you post *hbm.xml which will help make to do that. Thanks!


Top
 Profile  
 
 Post subject: Re: Map all columns from table to IDictonary<TColumnName,TValue>
PostPosted: Thu Jul 23, 2009 2:02 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
I think you can use dynamic components for that. I thought I once found an example, but couldn't find it any more.

http://nhforge.org/doc/nh/en/index.html#components-dynamic

Maybe there's some test case in the source distribution where you can find out how they exactly work.

_________________
--Wolfgang


Top
 Profile  
 
 Post subject: Re: Map all columns from table to IDictonary<TColumnName,TValue>
PostPosted: Mon Jul 27, 2009 2:25 am 
Newbie

Joined: Wed Jul 22, 2009 8:40 am
Posts: 5
I found in svn test that shows how to map to IDictonary<string,DefaultClass>. But this don't solve my problem......
Anyway big thanks for reply!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.