iBatis JUnit test generation

2008-06-02 Thread milan.dinic
Hi, is there any tool that can generate test cases (insert, update, delete...) for iBatis dao's. I'm using iBator generate dao's. Thanks, -Milan -- View this message in context: http://www.nabble.com/iBatis-JUnit-test-generation-tp17602376p17602376.html Sent from the iBATIS - User - Java mail

RE: C3P0 configuration example for iBatis anyone?

2008-06-02 Thread Derek Alexander
Anton Rothenbacher wrote: > > We have a firewall between the db and webserver which is closing inactive > connections when the app sits idle for a period of time. After the idle > period, the first person who attempts to logon to the website experiences > a 15 minute lag while it waits for the

Re: iBatis JUnit test generation

2008-06-02 Thread David Hodge
I don't know of any tool but I would recommend that since daos and tests for daos are pretty straightforward. Create a tool yourself using StringTemplate. - David Y. Hodge On Mon, Jun 2, 2008 at 10:16 AM, milan.dinic <[EMAIL PROTECTED]> wrote: > > Hi, > > is there any tool that can generate test

iBatis 2.3.0.677, java.sql.SQLException: Invalid state, the ResultSet object is closed.

2008-06-02 Thread viren1
I am getting an exception "Invalid state, the ResultSet object is closed" after upgrading iBATIS from 2.2.0.638 to 2.3.0.677 and keeping the DAO package version 2.2.0.638. I don't have this problem with iBATIS 2.2.0.638 version at all. We are using JTDS 1.2.2 and MSSQL 2005. Any suggestions? thx.

Get the right commons-logging.properties file

2008-06-02 Thread Chema
Hello: does anyone know how I could to get what is the commons-logging.properties file that my iBatis application is using to logging? My iBatis application is a WAR inside an Application Server with more applications deployed. I've got to use commons-logging 1.0 and I can't to force with 'priori

RE: C3P0 configuration example for iBatis anyone?

2008-06-02 Thread Anton Rothenbacher
Actually, this is the solution we have ultimately implemented. I think I am getting the picture, that our best hope is to avoid stale connections in the first place. I was hoping to be pro-active on the client side, testing idle connections, recycling them if they are deemed bad (for whatever r

No caching / validating cache

2008-06-02 Thread andrew cooke
Hi, I have a very simple system, with two tables, related 1:many, and a single query which reads all entries from the outer join, returning a list of objects each of which contains a list of secondary objects from the "many" table. This all works fine. Now I have enabled caching, but am seeing:

Re: No caching / validating cache

2008-06-02 Thread andrew cooke
I should have said that I am using iBatis 2.3.2.715 on Linux x64 with Java 1.6 and MySQL 5.0.51a. Cheers, Andrew

Re: No caching / validating cache

2008-06-02 Thread Christopher Lamey
Do you have this attribute defined in the setting element: cacheModelsEnabled="true" In the sqlMapConfig file? On 6/2/08 3:23 PM, "andrew cooke" <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a very simple system, with two tables, related 1:many, and > a single query which reads all entrie

Re: No caching / validating cache

2008-06-02 Thread andrew cooke
Christopher Lamey localmatters.com> writes: > Do you have this attribute defined in the setting element: > > cacheModelsEnabled="true" > > In the sqlMapConfig file? i did not and you are a hero. it now works perfectly. thank-you! however THE FRIGGIN DOCS SAY THE DEFAULT IS TRUE AGGG