-->
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: Dictionary index mapping
PostPosted: Wed Jul 09, 2008 7:55 pm 
Newbie

Joined: Wed Jul 09, 2008 7:48 pm
Posts: 5
Very simple question. Hopefully there is a simple answer!

Why doesn't NHibernate insert/update the index value into its SQL? as in my table the index value is required.

I know this obviously can be done in the mapped value object type, but this is a pain and shouldn't really be neccessary.

I wish to index my dictionary using a string, where I also want the string to be inserted into the db.

Let me know if you require a mapping example to understand.

Thanks for your help in advance.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 6:04 pm 
Newbie

Joined: Wed Jul 09, 2008 7:48 pm
Posts: 5
Does anyone know the answer to this? Please


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 11, 2008 4:13 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Quote:
Let me know if you require a mapping example to understand.


Think so ;-), post the mappings and the code where you save/update your entities.

_________________
--Wolfgang


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.