Re: JUnit DAO queries test OK but JUnit DAO non-queries are a mystery?

2009-07-06 Thread David Brown
Hello Steven, thanks for the reply. I am running MySql. At the mysql prompt a: select @@autocommit displays a 1. And, the show variables displays: autocommit as ON. In my applicationContext.xml the bean property: defaultAutocommit = true. The various gory xml configs and source code follows. Onl

Local transaction error (not failure) listing 7.3 Begin book

2009-07-06 Thread David Brown
Hello iBatis group, an attempt to implement the equivalent Local Transaction as outlined in the listing 7.3 of the Begin book returns an error condition: java.lang.NullPointerException at com.sexingtechnologies.st.dao.TestAnimalmasterDAO.testDAOInsert(TestAnimalmasterDAO.java:101) TestAnimalm

Re: JUnit DAO queries test OK but JUnit DAO non-queries are a mystery?

2009-07-06 Thread Steven A
David, Rather than have us guess at your problem, be a little more helpful and post some code, as well as your configuration. Try setting jdbc autocommit to true. That should clear up your problem On Mon, Jul 6, 2009 at 7:21 AM, David Brown wrote: > Hello Larry, thanks for the speedy rep

Re: Suffix for DAOs

2009-07-06 Thread Jeff Butler
You can use one of Ibator's Java DOM classes to do it for you: FullyQualifiedJavaType fqjt = new FullyQualifiedJavaType(getDAOImplementationType());String package = fqjt.getPackageName(); The next release will likely have the iBATIS3 support in it. We're still working through a few issues with i

AW: Suffix for DAOs

2009-07-06 Thread Benjamin Klatt
Hi Jeff, thanks for this page. We will prepare our stuff to provide it there. The getter/setters for the types work. I was just looking for a way to get rid of this boring package/class name splitting ;) Apart from this, I was happy to see this refactoring. Btw.: Is there already a sch

Re: Suffix for DAOs

2009-07-06 Thread Jeff Butler
I've done some refactoring of attributes in 1.2.2. I think that some of the prior methods were a bit misleading - for example, changing the DAO package in a plugin would have no real effect. So, the new methods are limited to those that will actually do something useful. To that end, look at get/

Re: JUnit DAO queries test OK but JUnit DAO non-queries are a mystery?

2009-07-06 Thread David Brown
Hello Larry, thanks for the speedy reply. I am not a long time iBatis user and therefore lack considerable background. Notwithstanding, I am not sure of your reply: Transactions? On the software side I have the non-query testcases annotated: @Transactional. On the database side I am using the My