Building iBator Eclipse plug-in from source

2009-09-15 Thread Guy Rouillier
I'm trying to build the iBator Eclipse plug-in from source to correct the NullPointerException if the daoGenerator clause is not present. I've got the trunk checked out. BTW, both the website and the Eclipse help list the wrong URL for SVN checkout. Both of them say to check out from http:/

Re: ResultHandler - OutOfMemory Exception

2009-09-15 Thread Clinton Begin
Hmmm... I don't think so. I suppose it would make sense to add that ! :-) Jira ticket! On Tue, Sep 15, 2009 at 11:57 AM, K. Arnold wrote: > > Out of curiosity, is it possible to create my own DefaultSetResultHandler? > I > wrote an plugin that would intercept the call, and I was going to walk

Ibatis Invalid Parameter Object

2009-09-15 Thread HECHANOVA, DEXTER B (ATTSI)
Good morning. I am receiving the error below and it is puzzling because the code is expecting the "Person" class, and it is complaining that it is finding the "Person" class. Any help would be greatly appreciated. Thanks. Caused by: java.sql.SQLException: Invalid parameter object type. Expected

Re: ResultHandler - OutOfMemory Exception

2009-09-15 Thread K. Arnold
Out of curiosity, is it possible to create my own DefaultSetResultHandler? I wrote an plugin that would intercept the call, and I was going to walk through the result set myself. Unfortunately I'm not sure how to get the parameters that are used in the constructor. Looking at the code it seems

Re: ResultHandler - OutOfMemory Exception

2009-09-15 Thread Clinton Begin
Ah, then yes, iBATIS 3 might be more aggressive about using the nested objects cache...(even without join mapping), I can't remember if iBATIS 2 would behave the same way. Might be worth a try... if it works in 2, then I'll revisit the design to see if I can get 3 to only cache if it detects a nes

Re: ResultHandler - OutOfMemory Exception

2009-09-15 Thread K. Arnold
I have not used iBATIS 2 to do a comparison. It is very well that the assumption given to me about how RowHandler works is false. I am in the process of trying to figure out a good limit size to pick utilizing an AS400 jdbc driver working on a DB2 database. We have decided that utilizing th

Invalid Parameter Object

2009-09-15 Thread HECHANOVA, DEXTER B (ATTSI)
Hello. I am receiving the error below. It is puzzling because the code is expecting the "Person" class, and it is complaining that it is finding the "Person" class. Any help would be greatly appreciated. Thanks. Caused by: java.sql.SQLException: Invalid parameter object type. Expected 'examples

Re: ResultHandler - OutOfMemory Exception

2009-09-15 Thread Clinton Begin
The difference between RowHandler and ResultHandler is only in name. They did the same thing. I'd be interested to know if iBATIS 2.x works for you in this regard. As far as I can recall, 2.x had the same design if you invoked the join mapper... See, as soon as you try to use a JOIN to load a com

Re: ResultHandler - OutOfMemory Exception

2009-09-15 Thread K. Arnold
Thank you for the reply. Is it possible to make the join mapping cache a configurable attribute on the mapping file? This is my first time using Ibatis and I was confidently informed that we could walk row by row over a result set. I was told to look up the RowHandler interface. It is my unde

Re: Custom abator.conf

2009-09-15 Thread Jeremy Jardin
Yes, I missed it ! thx very much ! Iwao AVE! wrote: > > Hi Jeremy, > > You can add rootClass property in table or java model generator element. > http://ibatis.apache.org/docs/tools/ibator/configreference/table.html > > HTH, > Iwao > > on 09/09/15 17:12 Jeremy Jardin said the following: >>

Re: Custom abator.conf

2009-09-15 Thread Iwao AVE!
Hi Jeremy, You can add rootClass property in table or java model generator element. http://ibatis.apache.org/docs/tools/ibator/configreference/table.html HTH, Iwao on 09/09/15 17:12 Jeremy Jardin said the following: > > Hi, > > > I'd like to set a motherClass to each bean generated with abato

AW: Ibator: generate equals and hashcode in Example classes

2009-09-15 Thread Iwao AVE!
Benjamin, Thank you for adding the link. I was just unsure about its usefulness :) // Iwao on 09/09/15 17:53 Benjamin Klatt said the following: Hi Iwao, thanks a lot! I add a link to your code in the wiki: http://opensource.atlassian.com/confluence/oss/display/IBATIS/3rd+Party+Ibat or+Plugin

AW: Ibator: generate equals and hashcode in Example classes

2009-09-15 Thread Benjamin Klatt
Hi Iwao, thanks a lot! I add a link to your code in the wiki: http://opensource.atlassian.com/confluence/oss/display/IBATIS/3rd+Party+Ibat or+Plugins Hope this is ok for you. Thanks Benjamin -Ursprüngliche Nachricht- Von: Iwao AVE! [mailto:haraw...@gmail.com] Gesendet: Dienstag, 15. S

Custom abator.conf

2009-09-15 Thread Jeremy Jardin
Hi, I'd like to set a motherClass to each bean generated with abator. Maybe I can specify that from the abator-conf file ? I add manually "extends MotherClass" in my beans, but each time I run abator, I have to do it again.. Otherwise, if I add manually "implements Custom interface", abator d

Re: Ibator: generate equals and hashcode in Example classes

2009-09-15 Thread Iwao AVE!
There is one thing you should know about the generated methods: The order of criterion matters. For example, the following two examples are the same from SQL perspective, but example1.equals(example2) returns false. example1.createCriteria() .andPropAEqualTo(condition1) .andPropBEqualTo(condi

Re: Ibator: generate equals and hashcode in Example classes

2009-09-15 Thread Iwao AVE!
Hi Benjamin, Here's mine. http://harawata.blogspot.com/2009/04/adds-equals-and-hashcode-to-ibators.html Hope this helps, Iwao on 09/09/15 16:29 Benjamin Klatt said the following: > Hi all, > > does someone know about an Ibator plugin to generate the equals and > hashcode methods for the Exampl

Ibator: generate equals and hashcode in Example classes

2009-09-15 Thread Benjamin Klatt
Hi all, does someone know about an Ibator plugin to generate the equals and hashcode methods for the Example classes? The existing EqualsHashCodePlugin does provide this functionality for the data classes. Our intend is to have this methods also in the example classes for better unit test