-->
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: How do you adjust column mappings at runtime
PostPosted: Mon Apr 16, 2007 1:04 pm 
Newbie

Joined: Mon Apr 16, 2007 12:57 pm
Posts: 1
I'm hoping that someone can assist me. I'm relatively new to NHibernate.

I need to retrieve my reference data, which has been localized:

Guid id
string en-us
string fr-ca
...

I'd like to map this into an entity that looks like:

Guid id
string Description

So I need to dynamically change the mapping to Description based on a value supplied from the client.

I thought about a formula but I can't figure out how to pass in a parameter so that the intended value can be specified.

Any help would be greatly appreciated!


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.