Incorrect usage of n+1 fix?

2005-01-05 Thread Chen, Tim
Title: Incorrect usage of n+1 fix? Following the threads on the mailing list archive I tried to use the n+1 fix but I get the following from my query. Below is the exception and the related items that I have defined. It's interesting to note that if I don't try to execute getQuartersForServ

RE: Incorrect usage of n+1 fix?

2005-01-06 Thread Chen, Tim
Title: Incorrect usage of n+1 fix? Thanks Michal.    Larry and I worked through this yesterday. It's on the wiki now. http://wiki.apache.org/ibatis/How_20do_20I_20get_20around_20the_20n_2b1_20selects_20problem_3f       In short, it was a namespace issue. It was namespace aware but I didn't inc

RE: Qns abt using inside

2005-01-18 Thread Chen, Tim
There's a simple problem. If you look at the docs.. there is another statement that you can use to wrap what you have called:   if you add that instead of your 'where' it will be okay. -Tim From: Nilesh Bhattad [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 11:02 AMTo: ibatis-u

RE: change in property value inside

2005-01-18 Thread Chen, Tim
Actually to the contrary of these (and they are very good points). Adding a % when used in the case that Prashanth suggested as a business case begins with or contains then it makes sense. I think that sql is one of those languages that you get a lot of leeway with since its been a standard for a w

RE: Avoiding N+1 Selects (1:M and M:N)

2005-02-09 Thread Chen, Tim
Not from my experience with it (as you see in the FAQ) You do, however, need to a groupBy to the parent resultMap (in your case clientAndDealingsMap). Move the groupBy that Kris sent to that resultMap and see what happens. Just out of curiousity though. If you print on the size of List clients and/

RE: Is this overkill?

2005-03-01 Thread Chen, Tim
Or if its just for display just return it as an XML string or Hashmap and cache as such. Simple and no need for any objects at all. And uses iBatis' very cool return as XML capabilities :) -Original Message- From: Paul Barry [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26, 2005 9:2

RE: iBATIS vs Hibernate

2005-03-01 Thread Chen, Tim
Since Paul already gave you a good breakdown of your question. I'll just answer ur ps. Yes you can and you can even call for a flush whenever u like or after a statement executes. (for example flushing after an insert). It's all in the manual and it's very simple to use :) -Original Message---

RE: The biggest problem with iBATIS ..............

2005-03-08 Thread Chen, Tim
You forgot mass updates/deletes ;) -Original Message- From: Antony Joseph [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 11:31 AM To: ibatis-user-java@incubator.apache.org Subject: The biggest problem with iBATIS .. Hi all, I came across this on one of the other fo

RE: Vote your favourite iBATIS community member onto the "Contributors" list

2005-05-11 Thread Chen, Tim
>Don't vote for yourself though, that's lame.  ;-)   (Unless you feel we really did miss you for doing something spectacular, in which case we're sorry, and let us know.) I vote for myself. How did I contribute you all might ask. I've been moral support for iBatis since Larry and Brandon int