-->
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 to design generic search forms?
PostPosted: Mon Mar 16, 2009 4:33 am 
Newbie

Joined: Mon Dec 15, 2008 6:59 am
Posts: 6
Hi all.

I'm facing the issue of providing the user of my applications with easy-to-use search forms. In my mind, a search form is structured as a grid whose columns are the "most important properties" of an entity, those to be searched in.

Before NHibernate I was used to ask for the "Search Service" in this way:

int ok = Search(Connection, TableName, VisibleFieldsList, IndexFieldName, SortedFieldName, WinCaption, ref IndexValue);

The function shows a grid directly bound to a DBSource and populated with data retrieved by a dynamically created sql statement. The user, while searching for a row can re-sort records, filter by any column, etc...

Though strongly bound to all-the-DB-stuff, this approach has the great advantage of allowing an easy search on virtually any table in my DB.

What is the NHibernate couterpart for this approach, if any?

Thanx,
Marcello.


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.