not known to the MapperRegistry with iBatis 3.0

2009-08-17 Thread RichadB
Hello I am new to iBatis and am trying to get started with the Beta version of iBatis 3.0. I have set up a very simple test for myself this includes An interface that defines the query = package com.aimhedge.trading.database; import java.util.List; import

Re: How Do I Change Schema

2009-08-17 Thread Andy Law
pczurak wrote: I am sorry, I am very new to iBates, I do not know what this means You'll have to make $schema$ a property of your parameter object. how do I do this, can you point me to an example? OK. When you hit the iBatis query code, you pass in a 'parameter' object to the

Re: not known to the MapperRegistry with iBatis 3.0

2009-08-17 Thread Clinton Begin
Strange, it should add it automatically if the namespace shares the name of a class. That said, you can add it manually... sqlSessionFactory.getConfiguration().addMapper(Your.class); I'll add this to the documentation. Clinton On Mon, Aug 17, 2009 at 8:14 AM, RichadBrichard.b...@aimhedge.com

Re: not known to the MapperRegistry with iBatis 3.0

2009-08-17 Thread RichadB
Adding the explicit mapping seems to work (or at least it gets me to another error of the sort I would expect to see). I don't think I'm doing anything strange, so I'm not sure why it doesn't automatically load Thanks Clinton Clinton Begin wrote: Strange, it should add it automatically if

iBATIS 3 for Java BETA *2* Released

2009-08-17 Thread Clinton Begin
Hi all, The mirrors have updated and iBATIS 3 Beta 2 is now ready to roll. All known issues submitted in JIRA and discussed on this list have been implemented (unless I missed something). :-) Feel free to use this thread to discuss any new Beta 2 questions, or use JIRA to log any issues.

Re: not known to the MapperRegistry with iBatis 3.0

2009-08-17 Thread Clinton Begin
If you could write a quick unit test to demonstrate the broken behavior, it might help. Nathan just wrote a mapper and it was loaded automatically, so something must be different somewhere... Note: The namespace must equal the fully qualified name of the CLASS, not the PACKAGE Clinton On

Re: How Do I Change Schema

2009-08-17 Thread pczurak
Thank you for all of your help! I think I will just have 2 sets of XML files, one for Test and one for production, just have to remember to update or change both when something changes. Andy Law wrote: pczurak wrote: I am sorry, I am very new to iBates, I do not know what this means

Re: How Do I Change Schema

2009-08-17 Thread Clinton Begin
You could use Ant to supply the ${schema} replacements for you.. just make sure it doesn't accidentally catch any other runtime ${parameters} Clinton On Mon, Aug 17, 2009 at 10:28 PM, pczurakczu...@wsinc.com wrote: Thank you for all of your help! I think I will just have 2 sets of XML

Re: updated iBatis In Action book?

2009-08-17 Thread Nathan Maves
you must be kidding. I have to work with those two everyday... jk love you guys! on a serious note I have some ibatis in action books for sale, get them before they get outdated On Wed, Aug 12, 2009 at 9:00 PM, Clinton Begin clinton.be...@gmail.comwrote: LOL Nice Larry. :-) No, you

Re: iBatis change to 1.5

2009-08-17 Thread Nathan Maves
Trenton, Thanks for the input. As a team we felt that given the fact that Java 5 came out in 2004 we gave the community ample time to upgrade :) The added features and performance gains were enough for us to jump. I think the right move for us was a minor release increment. In fact J2SE

Re: How Do I Change Schema

2009-08-17 Thread Mario Ds Briggs
If would suggest rather to remove the harcoding of schema in the SQL statements now. In the long run this effort will be less than maintaining 2 sets of files Mario pczurak

Re: How Do I Change Schema

2009-08-17 Thread pczurak
I have tried that, but DB2 does not like it, if you do not specify schema DB2 automatically inserts UserID as the schema name Mario Briggs wrote: If would suggest rather to remove the harcoding of schema in the SQL statements now. In the long run this effort will be less than maintaining

micro version JVM support

2009-08-17 Thread Trenton D. Adams
Hi Guys, I was very surprised to find out that 2.3.0 was the last version that supported Java 1.4.2, and yet the latest version is only 4 micro versions above 2.3.0, sitting at 2.3.4. Why would iBatis change something so major, in a micro version? I would have expected that iBatis would have