column « Search « JPA Q&A

1. Is it possible to search for same value on multiple columns with Hibernate Criteria?

I have search query that has many optional parameters and then search word field that searches many columns. Is it possible to use hibernate criteria for this purpose? I need to ...

2. Filter to search in a column with NHibernate

I need to make a filter to search in a column of a table in sql. I have two methods, the first one receive a string(Name or LastName) and return a Collection<Employee>.


3. How to search in grouped columns in MySQL? (also in Hibernate if possible)

I have the following table:

Guy Table:

| guy  | attribute| value|
| John | age      | 12   |
| John | dollars  | 15  ...