Re: Leave complex properties null when columns are null?

2008-07-11 Thread Ian Zabel
Allow me to be more specific. I am using a query similar to this: SELECT name, city "address.city", state "address.state" FROM PERSON So, I guess when iBatis sees those bean property aliases, it makes a new Address() object even if the column is null. Is there a better way of handling thi

Re: Latest Stable Version

2008-07-11 Thread Clinton Begin
Yes, that's a typo, thanks. :-) On Fri, Jul 11, 2008 at 10:09 AM, Jeff Hibbs <[EMAIL PROTECTED]> wrote: > Thanks!I guess my confusion is due to the fact that the download page > still has status of "Beta" for version 2.3.2. > > Should it not have a different status once it's promoted to GA?

Re: Latest Stable Version

2008-07-11 Thread Jeff Hibbs
Thanks!I guess my confusion is due to the fact that the download page still has status of "Beta" for version 2.3.2. Should it not have a different status once it's promoted to GA? Again, thanks! >>> "Clinton Begin" <[EMAIL PROTECTED]> 7/11/2008 11:40 AM >>> FWIW: We follow a pretty str

Re: Latest Stable Version

2008-07-11 Thread Clinton Begin
FWIW: We follow a pretty strict rule that our repository is always deployable and stable. So barring unintentional bugs (which can be in even the most declared stable releases), all of our releases are as stable as any other (or even just by checking out from SVN). The only thing that can determ

Re: Duplicates when trying to avoid N+1 selects

2008-07-11 Thread Heinrich Götzger
Haha, problems are repeating ;-). If I get this right, we just had this 2 days ago, had we not? Take a look in this thread: http://www.nabble.com/Having-two-N-plus-1-groups-p18361780.html I'll go with RowHandler and check if it works with collection-types somehow. Cheers Heinrich mailjoe wro

Re: Duplicates when trying to avoid N+1 selects

2008-07-11 Thread mailjoe
Good point Larry! My domain objects look like this: Restaurant --> waitersTeam --> John, Tim, Cindy --> managersTeam --> Mary, Steven I have SQL Maps for both the waitersTeam and the managersTeam. Now, I want to fetch Restaurant objects with a single query based on INNER JOIN. T

Latest Stable Version

2008-07-11 Thread Jeff Hibbs
Hello - Which is the latest stable version? I'm particulalry interested in the bug fix for: issue 406 - Bug in Ibatis sqlMap when one resultMap has multiple results that are resultMaps... then the groupby attribute only seems to work for the first embedded resultMap. I downloaded ibatis-

Re: Duplicates when trying to avoid N+1 selects

2008-07-11 Thread Larry Meadors
FWIW, I got as far as "COMPLEX", "A_GROUP", and "B_GROUP" before I stopped reading. ;-) I'm not saying no one else will read or answer you, just that I think if you can make this a more concrete example, instead of a tuple calculus exercise, then you might get more (and better) responses. Larry

Duplicates when trying to avoid N+1 selects

2008-07-11 Thread mailjoe
Hi, We have a ComplexObject made of one instance of aGroup and one instance of bGroup. The aGroup is made of a collection of A instances. The bGroup is made of a colleciton of B instances. We have one SQL Map for aGroup, and another one for bGroup. If aGroup contains m A's and bGroup contains n

Re: caching and obect refs

2008-07-11 Thread Larry Meadors
Make it read-only and serializable. Larry On Fri, Jul 11, 2008 at 12:40 AM, Darren Davison <[EMAIL PROTECTED]> wrote: > just out of interest, how do people handle the sharing of object refs > from an ibatis cache? > > If I cache a reference to a Product instance and a second user obtains > that

Re: nullValue and empty Sring

2008-07-11 Thread Jeff Stahl
Don't you have to put the CHAR in quotes as well? CarloV wrote: If i want to set a nullValue replacement for an empty String i use this in an explicit parameterMap If i want to do the same thing using inline parameters how should i write the statement? I tried whit #codCopiaEsito,jdbcType