May I ask why do you need it?
2012/3/12 marzia <marzia...@yahoo.com>:
I see the benefit although honestly you will save that much. If you
get a client using some nested selects the final object graph will be
cached so the next time you get that client you will get the result
directly.
If you also use one of those nested selects alone it will hit the
database, and then will be cached.
You can contribute a patch but I am afraid that will not be easy
because the 2nd level caching is at a high level and knows nothing
about nested selects.
2012/3/12 marzia <marzia...@yahoo.com>:
We had the same problem, so we created our own myBatis fork. I attached the
diff against 3.0.4. We use that in production for a year now. It was made in a
hurry, so don't expect a nice code. And all the configuration possibilities of
myBatis are not tested, so there can be setups in which the whole thing
misbehaves.
It contains the following modifications:
1. using list types other than ArrayList in collections (subquery results)
2. removed defered loading (lazy loading, it caused problems for us, as I can
remember)
3. removed local cacheing (it's done by the controlled subquery cacheing, like
in iBatis2)
4. automatic on the fly query parameter transformer
Maybe it can give some ideas for the developers of myBatis. It would be great
if those features would be available out of the box.
Be aware: It was hacked in hours without any deep knowledge of myBatis
internals!
Regards,
Balázs
2012.03.16. 05:42:47 Mike Fotiou: