Re: Updating from ibatis 1.3.1 to 2.1.7 .. Other Question please help!

2006-08-16 Thread Clinton Begin
Using setUserConnection will work.   It's thread safe, so don't worry about concurrent access.  Just make sure to "unset" it by calling setUserConnection (null) -- which reminds me, we should add a clearUserConnection() to make this code nicer. The other way to do it is with openSession (Connection

selectKey and parameterMap issue

2006-08-16 Thread jaybytez
When I use a selectKey in conjunction with a parameterMap...the selectKey does not appear to work in mapping its value into the insert statement. I originally did not have an id field in my object, so I added one and included it in the parameterMap thinking this would help. I then made the selec

Re: Properties not loaded after first null (sometimes)

2006-08-16 Thread Jeff Butler
This probably isn't the issue, but you should know that VARCHAR2 is not a JDBC type - it is Oracle specific.  iBATIS will essentially ignore this value.   I've got a test coded coded that is very similar to this, and have no issues with it.  But I'm also using iBATIS 2.2.0 and HSQLDB.  Try upgradin

Re: Properties not loaded after first null (sometimes)

2006-08-16 Thread Juan Alvarez
Thanks for your tips. Here's some more information around my problem.   This is one of the problematic maps, as you can see, I've placed "fechaNacimiento" as the last property, and that's because if it's not and a null value appears in it, the following properties are not loaded with their values,

Re: How tell Abator to Not Put Comments in Generated Code?

2006-08-16 Thread Mississippi John Hurt
That's fine, its not a big deal. I just sort the properties block, then remove the comments in a single block, delete the get/setters, then just have eclipse re-generate the get/setters. It works fine. Thanks! On 8/16/06, Jeff Butler <[EMAIL PROTECTED]> wrote: The Javadoc comments are required in A

Re: How tell Abator to Not Put Comments in Generated Code?

2006-08-16 Thread Jeff Butler
The Javadoc comments are required in Abator for merge purposes.  So there's not an option to turn them off.   If you're using Eclipse, I suppose you could write a Javadoc comment remover plugin fairly easily - but this would disable the Abator merge function.  Usually people want more comments, not

How tell Abator to Not Put Comments in Generated Code?

2006-08-16 Thread Mississippi John Hurt
Hi,How can I configure Abator to not generate comments in the generated code, for instance model properties and get/setters?  Thanks.

Re: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread Larry Meadors
On 8/16/06, Khanna, Vijay (GE, Corporate, consultant) <[EMAIL PROTECTED]> wrote: Thanks for the idea..Hope the Moderaters document this.Please feel free to do so:http://opensource.atlassian.com/confluence/oss/display/IBATIS/Home Larry

RE: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
David, It works. Thanks for the idea..Hope the Moderaters document this. Thanks, Vijay Khanna -Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 12:03 PM To: user-java@ibatis.apache.org Subject: Re: Updating from ibatis 1.3.1 to 2.1.7 ..

Re: Exception while setting properties

2006-08-16 Thread al pivonka
How to un-subscribe from this list? Al PivonkaThose who say it can't be done,are usually interrupted by those doing it.- Original Message From: Eugeny N Dzhurinsky <[EMAIL PROTECTED]>To: user-java@ibatis.apache.orgSent: Wednesday, August 16, 2006 12:06:12 PMSubject: Re: Exception while sett

Re: Exception while setting properties

2006-08-16 Thread Eugeny N Dzhurinsky
On Wed, Aug 16, 2006 at 07:22:22AM -0600, Larry Meadors wrote: > >So does this make the error go away? Yep. >If the database allows null values, you really don't want to use an >int - and you are discovering why. >Even with JDK5 and auto-boxing, if you try to assign a null to an

Re: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread David Gagnon
Hi, I'm using Intellij to run my ant task. Here is my task. The problem is that you should add F:\java\ibatis2.1.7\src\ibatis-src.jar in the classpath (wich contain the xsl sheet). But adding it to convert.classpath doesn`t work!! So I add it directly in the additionnal librarie wich is

Re: modal typehandler?

2006-08-16 Thread Larry Meadors
Couldn't you create an abstract base class with subclasses that do that?LarryOn 8/16/06, Reuben Firmin < [EMAIL PROTECTED]> wrote: Is there a way I can construct a type handler in different modes?   My specific need is this:   The iSeries folks like to give me back dates as integers, e.g.

RE: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Actually, I was facing trouble with ANT still unable to find the XSL file.How exactly are u passing this file/src on the ant command prompt.. D:> ant task ... Thanks, Vijay Khanna Desk : 203-326-2365 -Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, A

Re: Updating from ibatis 1.3.1 to 2.1.7 .. Other Question please help!

2006-08-16 Thread David Gagnon
Hi all, I'm having a lot of fun trying to convert my code to 2.1.7. There is still a lot of things I didn`t figured out yet. Can you please tell me how to convert the following function.? public final List getList(DbConnection dbCon, String mapKey, Object param) throws DatabaseExcepti

Re: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread David Gagnon
Hi, I fact I was wondering why this is not the SQLMap that includes to the sqlMapConfig. ... But if it`s the other way fine I can live with this. /David Nathan Maves wrote: Not sure what you are asking? If you are asking if you have to keep all of your sqlMaps in the main config file the

modal typehandler?

2006-08-16 Thread Reuben Firmin
Is there a way I can construct a type handler in different modes?   My specific need is this:   The iSeries folks like to give me back dates as integers, e.g. 20061004. They also give me back times as integers, e.g. 1203. Writing a type handler that copes with this is no big deal, but it w

Re: Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread Clinton Begin
Sorry for the trouble with this guys.  The converter hasn't been touched in 2 years, because most people switched that long ago.  That said, there are many people who simply used search and replace features, as the biggest change is the DTD and the element names ( becomes etc.). The conversion too

RE: Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
David, How exactly are you doing this..? Can u give an example.. Thanks, Vijay Khanna -Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:27 AM To: user-java@ibatis.apache.org Subject: Re: Maps 1.x to 2.x ANT task fails.. For the XSL fi

RE: Problem with Multiple resultmaps in 2.2.0

2006-08-16 Thread Niels Beekman
I think you should use the fully qualified name of the resultmap, so User.countryResult shoulud work just fine. Does this behaviour occur only with 2.2.0 or did you just mention it to be complete?   Niels   From: Javier Urbaneja [mailto:[EMAIL PROTECTED] Sent: woensdag 16 augus

Re: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread Nathan Maves
Not sure what you are asking?  If you are asking if you have to keep all of your sqlMaps in the main config file then the answer is no.Here is an example of a sqm map config file that includes multiple sqlMap files.                 cacheModelsEnabled="true"    enhancementEnabled="true"     maxSessi

RE: Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Ok. Let me see thanks. -Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:27 AM To: user-java@ibatis.apache.org Subject: Re: Maps 1.x to 2.x ANT task fails.. For the XSL file I added the source zip in the command line directly. Not in t

Re: Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread David Gagnon
For the XSL file I added the source zip in the command line directly. Not in the Ant build file. Regards /David Hi David, Looks like you found a workaround at such a critical time. Let me try this.. BTW, did it solve both the issues 1) ClassCast & 2)finding the xsl file..? Thanks, Vij

RE: Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Hi David, Looks like you found a workaround at such a critical time. Let me try this.. BTW, did it solve both the issues 1) ClassCast & 2)finding the xsl file..? Thanks, Vijay Khanna -Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:1

Re: Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread David Gagnon
Hi, Im doing the conversion right now .. I got this problem and solve it by using an older version of ANT., i.e.: 1.5.4 My problem is that the task dont find the SqlMap.xsl even though it`s in the classpathI you find an answer to this error let me know Best Regards /David Khanna, Vi

Maps 1.x to 2.x ANT task fails..

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Hello I am trying to run the ANT task to convert sqlmaps from 1.x to 2.x. But getting ClassCastException.   OUTPUT - D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion>ant mainBuildfile: build.xml   main:[convertSqlMaps] Copying 1 file to C:\convertSqlMaps   BUILD FAILE

Re: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question II

2006-08-16 Thread David Gagnon
Hi all, Another question: -I created an sqlMapConfig but it seems that from the sqlMap you cannot load the sqlMapConfig (i.e.: global config). I really need to declare all my sqlMap in sqlMapCOnfig.xml??? I use this code in my DAO to load the corresponding sqlMap: sqlNewMap = XmlSqlMapBui

Re: Exception while setting properties

2006-08-16 Thread Larry Meadors
So does this make the error go away?If the database allows null values, you really don't want to use an int - and you are discovering why.Even with JDK5 and auto-boxing, if you try to assign a null to an int, you will get an NPE. So the only way around it is to assign a magic number ( i.e., 0) to m

Re: Updating from ibatis 1.3.1 to 2.1.7 .. should I? Does it worth the effort?: ... Upgrade question

2006-08-16 Thread David Gagnon
Hi all, I'm in the process of upgrading now and I found answer to some of my questions but I was wondering what should I do with the modification I made. I created PaginatedDataListWithRowCount class because I need to have the number of row returned when I used a paginatedDataList. This w

RE: Stored Proc Issue in Ibatis 2.1.7 0 Stuck..

2006-08-16 Thread Khanna, Vijay \(GE, Corporate, consultant\)
Thanks Viktor. I think, I understand now what was going wrong. Appreciate it !   Thanks, Vijay Khanna From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:36 PMTo: user-java@ibatis.apache.orgSubject: Re: Stored Proc Issue in Ibatis 2.1.7 0 Stuck.. Below are co

Problem with Multiple resultmaps in 2.2.0

2006-08-16 Thread Javier Urbaneja
This is my map file User.xml:                                                                                                                          select user_register_seq.nextval as idUser from dual        insert into users (id_user, nickname, password, email, id_country)    

Re: Exception while setting properties

2006-08-16 Thread Eugeny N Dzhurinsky
On Mon, Aug 14, 2006 at 10:38:33AM -0600, Nathan Maves wrote: > >what version of the jdk are you using? >can you post the sqlmap as well as the set/get method of the property >that you are having issues with? select task_id, customer_id,

Re: Exception while setting properties

2006-08-16 Thread Eugeny N Dzhurinsky
On Mon, Aug 14, 2006 at 10:43:15AM -0600, Nathan Maves wrote: > >Eugeny that is why I asked what jdk you are using. If you can run >java 1.5 you will not have these issues. java -version java version "1.5.0-p3" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p3-root_19_jul_