Re: Build Time Checks

2006-01-14 Thread Gregg D Bolinger
Derby (which is an Apache project now) has an in memory mode.  At any rate, yes, the quoted text was not stated correctly.  I'll try again.Is it common/good practise to perform unit tests that actually hit a database versus using mock objects?  Should I be doing both? Ok, probably not an iBatis ma

Re: Build Time Checks

2006-01-14 Thread Clinton Begin
I think your quoted question is missing a word or something. :-)In any case, I recommend HSQLDB over Derby if you have a choice, only because HSQLDB will be much faster, as it has an "in memory" mode. When I tried to port the iBATIS unit tests to Derby, the build took like 10 times longer. (not a p

Re: Build Time Checks

2006-01-14 Thread Gregg D Bolinger
Thanks Clinton.  I suppose I could do something similar with Derby.  I guess my question was a more general "Is it ok to do unit tests that actually unit tests?"  Or rather, is it common practice?   Gregg  On 1/14/06, Clinton Begin <[EMAIL PROTECTED]> wrote: I use HSQLDB for my ibatis unit tests. 

Re: Build Time Checks

2006-01-14 Thread Clinton Begin
I use HSQLDB for my ibatis unit tests.  It's totally effective for most well written SQL.  Only SQL that uses custom functions or stored procs will require your real database.  In such cases, we (where I work) give each developer their own account on the database server, or a copy of the database o

Re: Build Time Checks

2006-01-14 Thread Gregg D Bolinger
I do unit tests.  I've heard good and bad about performing unit tests that actually hit the database.  Typical scenerio is to use Mock Objects so you don't have too.  Anyone care to elaborate on unit testing that actually hits the database?   Gregg  On 1/14/06, Clinton Begin <[EMAIL PROTECTED]> wr

Re: ResultMap, N+1

2006-01-14 Thread Yannick Le Teigner
Tony, Indeed - looks like a bug. What is even more troubling is that I have another similar ResultMap that is working ok:                                                                                    

Re: ResultMap, N+1

2006-01-14 Thread DaqiQian2
Yannick,   I'm having similar problem.  please see my previous post, "groupBy issue".   thanks, Tony 

ResultMap, N+1

2006-01-14 Thread Yannick Le Teigner
Hi, I have a problem with a resultMap. My iBatis is: SELECT ledger_account_subcategories.id as id, ledger_account_categories.id as cid, ledger_account_categories.name as cname, ledger_account_subcategories.name as sname, ledger_accounts.id as ai

Re: Build Time Checks

2006-01-14 Thread Clinton Begin
+1On 1/14/06, Hycel Taylor <[EMAIL PROTECTED]> wrote: Unit Tests.On 1/13/06, Gregg D Bolinger <[EMAIL PROTECTED]> wrote:> I am looking for a way that I can validate my mapping files against my> associated object files and even possibly the database.  Basically, I want > to ensure that when the proj

Re: Build Time Checks

2006-01-14 Thread Hycel Taylor
Unit Tests. On 1/13/06, Gregg D Bolinger <[EMAIL PROTECTED]> wrote: > I am looking for a way that I can validate my mapping files against my > associated object files and even possibly the database. Basically, I want > to ensure that when the project it built, I run into as few runtime issues > a