-->
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: Is it possible to select a list of primitive types?
PostPosted: Fri Feb 03, 2006 11:41 am 
Newbie

Joined: Sun Jan 15, 2006 11:51 am
Posts: 8
I just want to select a list of strings, or int32s, or other primitive types without any mapping. Is it possible, and how? Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 8:02 pm 
Senior
Senior

Joined: Wed Jun 15, 2005 4:17 am
Posts: 156
you can get the ADO.NET connection object from the session which can be used to execute any SQL query you want .

cheers,
radu


Top
 Profile  
 
 Post subject: Collection of Values
PostPosted: Mon Feb 06, 2006 12:16 am 
Regular
Regular

Joined: Tue Jan 03, 2006 7:21 am
Posts: 85
You can use collection of values in NHib. For e,g a Set of strings can be declared as follows:

<set name="GroupNames" table="Names">
<Key column="GroupID"/>
<element column="Name" type="string"/>
</set>

Please see NHib documentation for more details


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.