Thanks Chris!
That did it. I added
module
javaibatis-sqlmap-2.3.0.jar/java
/module
To my application.xml file.
-Original Message-
From: Chris Lamey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 16, 2007 5:14 PM
To: user-java@ibatis.apache.org
Subject: RE:
Right now, I just have the basic configuration going on, and am applying
the credentials to the connection later, so my SqlMapClient creation
isn't anything special.
My SqlMapConfig.xml contains the following:
transactionManager type=EXTERNAL
dataSource type=JNDI
I'm doing it by checking the Foreign Key value and the use of isNotNull
If I don't want to join I set the Foreign Key value to null
And in the statement
SELECT
isNotNull property=foreignkeyfield
{Fields from the joined table}
/isNotNull
FROM maintable
isNotNull property=foreignkeyfield
I use Spring Dao + iBatis and I have to run into the one transaction
inserts order document.
( insert into header values( docpk, docnum, docdate, client ) and
many inserts as insert into( docfk, itempk, good, price, quantity ).
I do not know how to create one transaction in the case of spring
On May 17, 2007, at 10:34 AM, Sergey Livanov wrote:
I use Spring Dao + iBatis and I have to run into the one transaction
inserts order document.
( insert into header values( docpk, docnum, docdate, client ) and
many inserts as insert into( docfk, itempk, good, price, quantity ).
I do not know
We are currently using iBatis 2.0.9( I know we are a little behind). I
would like to get to the current version(2.3.0). I have tried 2.0.9b
and 2.1.5 and get the following exception
com.ibatis.common.exception.NestedRuntimeException: Error occurred.
Cause:
Mark, thank you a lot for answer.
I want to do something like
try{
sqlMap.startTransaction() ;
sqlMap.insertHeader( headerbean );
sqlMap.insertItems( ListOfItems) ;
sqlMapcommitTransaction() ;
} finally {
sqlMap.endTransaction() ;
}
2007/5/17, Mark Volkmann [EMAIL PROTECTED]:
For starters you'll need to study the spring docs on AOP.
Thank you a lot Ashok. I will try.
2007/5/17, Ashok Madhavan [EMAIL PROTECTED]:
Hi Sergey,
If you are using Spring + iBatis, you can go with Declarative
transaction
supprt provided by spring. Then u dont need to do any of the
I am working with Spring MVC (ver 2.0.5) and iBATIS. I have a simple JSP
page with a displayTag table which is rendered by a Controller. My
iBATIS query results are cached.
I found that each time I change the page for the displayTag table, the
cached data is re-added to my model so that my