Quantcast

3-level, "master-details-details", select

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

3-level, "master-details-details", select

Yaron
Hi,
I'm new to MyBatis, trying to get comfortable with the framework.
I found a nice example about master-details selection that worked
fine, but I need another level of details: details of the details. How
do I do that?
Also, suppose I have the details-details select in a different mapper.
Can I reuse the code?

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: 3-level, "master-details-details", select

Eduardo Macarron
> How do I do that?

There is nothing special, just do it in the same way.

> Also, suppose I have the details-details select in a different mapper.
> Can I reuse the code?

Yes. Have a look at the sql/include element in the doc.
Loading...