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: Searching with Entity.
PostPosted: Thu Jun 05, 2008 6:50 am 
Newbie

Joined: Fri Jan 25, 2008 6:18 am
Posts: 10
Location: Bangalore, India
Hi Folks,

I am new to NHibernate, and using the same in one of my projects. I stuck up at one point, please look into this problem and help me.


There is Tables like (

Branch :- BranchID, Name, City, State, Country.
City :- CityID, Name.
State :- StateID, Name.
Country :- CountryID, Name.

There is proper relationship( one to many from all regeonol tables to Branch).

I have a search page to locate the Branches in deferent values like

Branch ID, Name or City ID, City Name, State Id, State Name, Country Id, Country Name.

I need to return all the branches which matches th gien creiteria.

(If two or more values from GUI is given then we need to return the collection of branches whcih matches all the conditions.)

for this I Have another class called

SearchCreiteria - BranchID, BranchName,CityID, CityName, StateId, StateName, CountryId, CountryName.

can any one tell me the easy way to achive the this search functionality and get the collection of branches would be greate full to me.

thank you/

_________________
Thanks & Regards
Babar Shaik.


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.