This is the problem:
I receive a task for a project which uses Spring, Hibernate and Wicket.
In a particular HTML page I must have the possibility to create a filter (set the name of the filter and its parameters). I must create a list of filters in this way. In the same time, I must have the possibility to edit and delete the filter, and of course, to use that filter.
Any ideas? How could I do this?
My experience with Hibernate is very low, but I need to come with an idea for a project.
My naive solution:
I have the class Table_Something, to which I have associated a table in my database with Hibernate, and I need to create the possibility for the user to create filters for this table in my web application
So, I would create a class, named Table_Something_Filters, to which I will associate also a table in my database with Hibernate. So when, I create a new filter for Table_Something in my application, I would insert a new row in my Table_Something_Filters.
Is this a good idea? Any improvements for my solution?
Another problem: How can I use my filter? I query the Table_Something_Filters to get the values for the parameters of the filter and then what? How can I generate the finder, or how could I query the Table_Something, based on the values from the Table_Something_Filters?
Any ideas or suggestion are welcomed! :)