Very good, I hope you can help me. It turns out that I'm working on a web application, and I have the following problem (which I later found out about what happens with all the applications).
I have a database of a computer store, and the first thing I do is to retrieve the categories so that you can navigate from one side of the application to the other looking for components.
Well, the first operation I do against the database is to obtain the categories, here a dao class comes into play, and the controller, well, after obtaining these categories, if you want to access, for example, the processors, I have to execute another method of a specific dao, that this is the damage of products, well, as I said before, after having recovered the categories, I no longer recover the products of the category that I want. p>
That is, I get the categories with the dao method of categories to get these, and then all the operations I do against the database, it does not work for me because I do not get any data from the database, sorry for the redundancy.
Thank you very much to whoever solves this.