Both tables are linked by constraints on primary keys, so i can't make only one
insert.
I must have missed something with the ibatis config or the doa manager.
Thanks for your time.
Bruno
-
To unsubscribe, e-mail:
Larry Meadors larry.meadors at gmail.com writes:
Wait - I'm REALLY confused. Can you post a stack trace?
Doh, I just noticed - this conversation should be on the new list.
Maybe it's time to start this as a new thread and give us the stack
trace and the relevant code anew. :)
The
Hi,
I'm facing the same problem. Did you solved it ?
Thanks
-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org
You don't need the batch, and I'm pretty sure it won't ever work with
the batch because the inserts don't happen when you call them (they
happen when you call executeBatch()) so your ids don't get set when
you expect them to.
Remove the lines related to the batch, and I think it'll work.
Larry
Thanks for ansering.
I do not use the batch.
I'm just doing two inserts then i commit. I still have an integrity contraint
violation.
-
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands,
@ibatis.apache.org
Subject: Re: Transaction Rollback not working with iBatis + Spring
Thanks for ansering.
I do not use the batch.
I'm just doing two inserts then i commit. I still have an integrity
contraint
violation
We use iBatis + Spring and make use of stored procedures to fetch
information from Oracle DB. To find out what parameters (HashMap) is sent
to the stored procedure we have to actually set debug points. We'd like
this information to go to a log. Basically print out name of the Stored Proc
+ all
, Mar 7, 2010 at 8:13 AM, Bhaarat Sharma bhaara...@gmail.com wrote:
We use iBatis + Spring and make use of stored procedures to fetch
information from Oracle DB. To find out what parameters (HashMap) is sent
to the stored procedure we have to actually set debug points. We'd like
--
View this message in context:
http://www.nabble.com/Ibatis-%2B-Spring-tp22745182p22745182.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
Hi,
I have 2 tables CUSTOMER and DEPENDENT.
In CUSTOMER table the primary key is cust_id which is foreign key to
DEPENDENT table.
I would like to make insert to both tables together as a batch and also if
one fails than other must roll back.
If I remove the constraints of having cust_id as
Hello,
I have a problem using log4j with ibatis.
Log4j works well but i can't see the log for SQL requests and results.
I think i need to add this line LogFactory.selectLog4JLogging(); but i don't
know where i should add it. I am currently using spring framework and i
don't know where i can put
Add this line in log4j.properties.
log4j.logger.java.sql=DEBUG
2008/12/23 oci zarbi...@hotmail.com
Hello,
I have a problem using log4j with ibatis.
Log4j works well but i can't see the log for SQL requests and results.
I think i need to add this line LogFactory.selectLog4JLogging(); but
It has no effects :(
Hereafter, my log4j.properties :
# Global logging configuration
log4j.rootLogger=INFO, stdout
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
Hi,
I am using Ibatis with Spring and updating a table (on the remote DB) over a
dblink, but the changes are not being seen when I login to the remote DB.
When I update any table in the local DB, I can observe the changes in the
database, but not in case of update over a dblink.
Looks like, I
Got it working the following way.
DaoImpl:
getSqlMapClientTemplate().queryForObject(datapull.commit);
sql:
---
statement id=commitcommit/statement
-Rakesh
mailtorakeshp wrote:
Hi,
I am using Ibatis with Spring and updating a table (on the remote DB) over
a dblink, but the
]
Sent: Thursday, August 28, 2008 2:45 PM
To: user-java@ibatis.apache.org
Subject: Re: Ibatis+Spring related: Update over a dblink doesn't update the
table
Got it working the following way.
DaoImpl:
getSqlMapClientTemplate().queryForObject(datapull.commit);
sql:
---
statement id
/
/bean
_
From: Poitras Christian [mailto:[EMAIL PROTECTED]
Sent: 10 April 2007 07:10 PM
To: user-java@ibatis.apache.org
Subject: RE: iBATIS, Spring, and transactions...
First, you can still use BeanAction with Spring DAO.
The most simple solution to set your static variable
Message-
From: Meindert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 10 April 2007 04:52
To: user-java@ibatis.apache.org
Subject: RE: iBATIS, Spring, and transactions...
Hi All,
Does anybody have an answer on the question posted below?
I want to switch of from IBATIS DAO to spring because IBATIS DAO
That would be AWESOME, if you want, I can help with proofing, etc.
Maybe someone else would be willing to provide a *simple* iBATIS DAO
sample application that we could convert and then document the
process.
Larry
On 4/10/07, Poitras Christian [EMAIL PROTECTED] wrote:
I have to say that it
the insert/updates I used at first to fill database.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Larry Meadors
Sent: Tuesday, 10 April 2007 10:16
To: user-java@ibatis.apache.org
Subject: Re: iBATIS, Spring, and transactions...
That would be AWESOME, if you
]
Sent: 10 April 2007 04:25 PM
To: user-java@ibatis.apache.org; [EMAIL PROTECTED]
Subject: RE: iBATIS, Spring, and transactions...
That would be a great idea!
It's always welcome to see some code to show each steps. My app is
already to big to use it direclty as an example...
Christian
From: Meindert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 10 April 2007 12:30
To: user-java@ibatis.apache.org
Subject: RE: iBATIS, Spring, and transactions...
I'm busy converting and went to the site
http://www.learntechnology.net/content/ibatis/spring_ibatis.jsp
Betreff: iBatis, Spring and postgres stored procedure
I stuck into a problem and after a few resultless hours I would like
to aks for your help. I searched for a similar problem(the forum as
also fired some googles) but could not find anything so I am starting
a new thread...
I have a PostgreSQL
-
Von: Lunohodov [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 2. Dezember 2005 16:18
An: user-java@ibatis.apache.org
Betreff: iBatis, Spring and postgres stored procedure
I stuck into a problem and after a few resultless hours I would like
to aks for your help. I searched for a similar problem
I stuck into a problem and after a few resultless hours I would like
to aks for your help. I searched for a similar problem(the forum as
also fired some googles) but could not find anything so I am starting
a new thread...
I have a PostgreSQL database with several stored procedures for
fetching,
25 matches
Mail list logo