There are lots of examples and help on doing this via google. Here is just one example http://www.devx.com/Java/Article/28754/0/page/4
soussou97 wrote: > > Hi Ron; > > You have another example more simple for the criteria Query ? > > regards; > > > Ron Anderson wrote: >> >> Criteria Query is pretty good for this. >> >> http://www.hibernate.org/hib_docs/reference/en/html/querycriteria.html >> >> >> ----- Original Message ---- >> From: soussou97 <[EMAIL PROTECTED]> >> To: users@appfuse.dev.java.net >> Sent: Saturday, October 6, 2007 7:38:55 AM >> Subject: [appfuse-user] Which design pattern >> >> >> Hi; >> >> I would like to implement an search algorithm which use many conditions >> (search criteria). >> For Example >> >> Begin : >> If criteria A && B are OK => if criteria C is OK => etc... >> Else criteria D && F are OK => if criteria C is OK => etc... >> Else etc... >> >> which design pattern or another design correspond to my requirement ? >> >> Regards; >> -- >> View this message in context: >> http://www.nabble.com/Which-design-pattern-tf4580094s2369.html#a13074261 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/Which-design-pattern-tf4580094s2369.html#a13342378 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]