Hi,
I just read the EE showcase datasources, but none of my question about that particular way to work is answered there.
First of all, I don't understand the logic behind such a datasource. For me, the data coming out the database is managed by a particular framework. I saw your direct SQL examples, and your Hibernate example. For my project I must use the MyBatis framework. I do not understand how to use a datasource wit my custom myBatis requests.
Next, I see that a datasource is linked to a table. Again, it seems then that the datasource communicates directly with the database. How can I configure some custom SQL join (because in this project's business logic, data displayed comes from 7 differents tables).
I've other questions about this, but this two first questions are a good start point.
Thanks for the explanation.
Romain.
I just read the EE showcase datasources, but none of my question about that particular way to work is answered there.
First of all, I don't understand the logic behind such a datasource. For me, the data coming out the database is managed by a particular framework. I saw your direct SQL examples, and your Hibernate example. For my project I must use the MyBatis framework. I do not understand how to use a datasource wit my custom myBatis requests.
Next, I see that a datasource is linked to a table. Again, it seems then that the datasource communicates directly with the database. How can I configure some custom SQL join (because in this project's business logic, data displayed comes from 7 differents tables).
I've other questions about this, but this two first questions are a good start point.
Thanks for the explanation.
Romain.
Comment