-->
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: comma delimited string of values to IList<int>
PostPosted: Tue Nov 06, 2007 11:59 am 
Newbie

Joined: Wed Jul 25, 2007 10:53 am
Posts: 7
Hi

I'm using nhibernate 1.2.0GA and I would like to know if it's possible to map a comma delimited string to an IList<int> using nhibernate. The comma delimited string would be stored in one of the columns of my table. For example the column called layout would have the following values.

-- I'm adding quotes to show that it's stored as a string in my table column.
'96,45,66,77'

after loading the entity I would like it to behave as follows.

// count would return 4.
int x = entity.layout.Count;

// would return 96.
int first = entity.layout[0];

Is this possible? Any help would be appreciated.

thanking you in advance
Francis


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.