开发者

designing for search

开发者 https://www.devze.com 2023-02-10 02:50 出处:网络
I have jsp form with 10 input selection types. I want to design a search component based on these parameters.

I have jsp form with 10 input selection types. I want to design a search component based on these parameters.

Do I have to put more if else conditions based on search criteria?

开发者_运维百科Can anyone tell me how to design this scenario to avoid if else conditions?


In my opinion, Query By Example is the right way to handle these. ORM frameworks like Hibernate provides this functionality out of the box. May be you have to roll your own using prepared statements, named parameters with JDBC.

0

精彩评论

暂无评论...
验证码 换一张
取 消