Re: question ...

2007-03-13 Thread Jeff Butler
The stack trace shows that it can't find the Derby driver. This probably has nothing to do with jdk 1.6. Try posting your SqlMapConfig.xml file. Jeff Butler On 3/13/07, Antonio Si <[EMAIL PROTECTED]> wrote: Hi, I am new to iBatis. Does iBatis work for jdk1.6? I am getting the following e

Re: question ...

2007-03-13 Thread Larry Meadors
I used it for a while with 1.6 (Apple's), and didn't have any issues. Larry On 3/13/07, Clinton Begin <[EMAIL PROTECTED]> wrote: It isn't tested yet. I do know that Sun added an insane number of new methods to ResultSet and other JDBC APIs. I can't remember if we have any delegating proxies

Re: question ...

2007-03-13 Thread Clinton Begin
It isn't tested yet. I do know that Sun added an insane number of new methods to ResultSet and other JDBC APIs. I can't remember if we have any delegating proxies for resultSet that implement the old interface...I think we changed them all to dynamic proxies. But if there are any left over, we'

Re: update using iterate, a collection, and a SQL IN clause

2007-03-13 Thread Jeff Butler
Assuming there's a getUser_id() method... UPDATE users SET flag = false #user_id[]# wrote: Hi all, I am wondering if it is possible to construct a SQL update using an iterate tag inside an update tag, and sending a collection (i.e. a java.util.List) as a parameter I have tried thi

Re: transactions with Spring DAOs

2007-03-13 Thread Mark Volkmann
On Mar 13, 2007, at 8:37 PM, Daniel Kalcevich wrote: Is there a reason you were calling the start, end and commit transaction within Spring? Do you mean why I'm I doing it in my Java code instead of doing it declaratively? The only reason is that I haven't learned how to do that yet. If y

RE: transactions with Spring DAOs

2007-03-13 Thread Daniel Kalcevich
Is there a reason you were calling the start, end and commit transaction within Spring? We use DAO's with Spring as our TransactionManager. Not sure if you are using the SqlMapClientBean from Spring or not. But I noticed the transactions being declared, but also the fact we use the method ge

Re: transactions with Spring DAOs

2007-03-13 Thread Mark Volkmann
On Mar 13, 2007, at 5:30 PM, Larry Meadors wrote: Version 5 will work for you, you just have to define the tables using the innodb engine. http://dev.mysql.com/doc/refman/5.0/en/using-innodb-tables.html Thanks for the tips! I followed the directions, adding "ENGINE=InnoDB" to the end of all

question ...

2007-03-13 Thread Antonio Si
Hi, I am new to iBatis. Does iBatis work for jdk1.6? I am getting the following error when I use jdk 1.6: WARNat com.ibatis.sqlmap.engine.mapping.result.loader.EnhancedLazyResultLoader$EnhancedLazyResultLoaderImpl.invoke(EnhancedLazyResultLoader.java:113) WARNat com.tctes

update using iterate, a collection, and a SQL IN clause

2007-03-13 Thread Collin Peters
Hi all, I am wondering if it is possible to construct a SQL update using an iterate tag inside an update tag, and sending a collection (i.e. a java.util.List) as a parameter I have tried this and it seems to work (I can't get log4j to work in ibatis so I can't see the SQL it is running, but the

Re: transactions with Spring DAOs

2007-03-13 Thread Larry Meadors
Version 5 will work for you, you just have to define the tables using the innodb engine. http://dev.mysql.com/doc/refman/5.0/en/using-innodb-tables.html Larry On 3/13/07, Mark Volkmann <[EMAIL PROTECTED]> wrote: On Mar 13, 2007, at 3:04 PM, Larry Meadors wrote: > Are you using MySQL w/o inno

writing XML with attributes

2007-03-13 Thread Jie Liu
Hi, I am trying to generate XML output files from Database. I know that iBatis provides mapping in the XML configuration file - it can map from database table columns to XML elements, does iBatis provide mapping from columns to XML attributes as well? Thanks, Jay <

Re: transactions with Spring DAOs

2007-03-13 Thread Mark Volkmann
On Mar 13, 2007, at 3:04 PM, Larry Meadors wrote: Are you using MySQL w/o innodb, or some other database that is not transaction aware? Ahh ... that may be the issue. I'm using MySQL version 5.0.27- standard. I assumed that all newer versions of MySQL were transaction aware. Is that wrong?

Re: transactions with Spring DAOs

2007-03-13 Thread Larry Meadors
Are you using MySQL w/o innodb, or some other database that is not transaction aware? Larry On 3/13/07, Mark Volkmann <[EMAIL PROTECTED]> wrote: I seem to be getting automatic transactions when I use Spring DAOs generated by Abator even though my SqlMapConfig.xml contains the following.

transactions with Spring DAOs

2007-03-13 Thread Mark Volkmann
I seem to be getting automatic transactions when I use Spring DAOs generated by Abator even though my SqlMapConfig.xml contains the following. ... Here's the simple bit of code I'm using to test this. The change to addressId is persisted even though a RunTime exception is thrown

Re: Object canonicalization?

2007-03-13 Thread Clinton Begin
It does hold true. It is very easy to change, so if you submit a JIRA ticket, we'll get it in for the next release. I agree about priority and the performance characteristics mentioned by the others. But it's still a good idea and is such an easy change that it's not worth worrying about. Clin

Stored procedure problem in execution

2007-03-13 Thread anand khati
Hi, I'm need of great help from you... will be very grateful to you Problem: following is the list of entries in my {call bmantra.prc_get_users(?,?)} Moreover, my bmantra.prc_get_users(?,?) SQL stored procedure is taking two params i.e. both int arguments and

Re: Does iBatis use or support Generics ?

2007-03-13 Thread Clinton Begin
I guess we'll have to disagree. I'm not against generics entirely, just Java's implementation is screwy. I know it's for backward compatibility, but I really wonderwhy bother. i.e. allows the compiler to perform stricter static type cheking? VERY VERY minimal. List strings = new ArrayL

upgrading

2007-03-13 Thread Zelimir Koljesar
Hello, We are currently using version Implementation-Version: 2.1.7 build# 597 and would like to upgrade to ibatis-2.3.0.677.jar. I have replaced the 3 jar files with this one and now I am having an initilization Exception. What am I doing wrong? Thanks! java.lang.NoClassDefFound

Re: Does iBatis use or support Generics ?

2007-03-13 Thread c . zecca
"Clinton Begin" <[EMAIL PROTECTED]> scritti il 13/03/2007 14:42:04 > How is it safer? Let's assume to read the interface for the our factory (object loader) List myFactory( ... ); List myFactory(...); Which of the two signatures provides better information? i.e. allows the compiler to perform

Re: Does iBatis use or support Generics ?

2007-03-13 Thread Clinton Begin
How is it safer? In both cases the error occurs at runtime at the exact same point in the code. And at runtime both are turned into a cast anyway. I don't think it's safer, it just makes it less clear where the cast is actually happening, which is bad for code readability. Clinton On 3/13/07,

Re: Does iBatis use or support Generics ?

2007-03-13 Thread c . zecca
"Clinton Begin" <[EMAIL PROTECTED]> scritti il 11/03/2007 04:24:15 > Well, since Java 5 generics are kind of half baked, we don't really > need to do anything to support them. Sure, we could make it a > little more "warning friendly", but at the end of the day you'll be > no more type safe