Re: Multiple selects per lazy loaded objects?!

2010-02-18 Thread Ing . Jan Novotný
Thanks - I thought that this is (was) a bug. Jan 2010/2/19 Clinton Begin > That might have been a bug just recently fixed. Try out the trunk. The > lazy loader was heavily optimized for both performance and memory usage. > > Clinton > > 2010/2/18 Ing. Jan Novotný > >> Thank you for answer. I

Re: iBatis annotation related questions

2010-02-18 Thread Ing . Jan Novotný
Thank you guys for sharing your experience. It's pretty good to hear that combining annotations and XML approach works in practice. My first thought was, that in case of large systems I wouldn't be able tu guess whether I should look in the Java or XML first when searching for particular statement

Re: iBatis annotation related questions

2010-02-18 Thread Nathan Maves
I completely agree. I too have a project using IB3 and I am really loving mixing the two together. I would give it a try before trying to corner yourself into using just one approach. Nathan Maves nathan.ma...@gmail.com On Feb 18, 2010, at 4:09 PM, Clinton Begin wrote: > Just curious, why

Re: Multiple selects per lazy loaded objects?!

2010-02-18 Thread Clinton Begin
That might have been a bug just recently fixed. Try out the trunk. The lazy loader was heavily optimized for both performance and memory usage. Clinton 2010/2/18 Ing. Jan Novotný > Thank you for answer. I understand now why all data were loaded at the > first touch to the object and not at ti

Re: iBatis annotation related questions

2010-02-18 Thread Clinton Begin
Just curious, why are you limited to 3.0 Beta 9? As for annotations vs. XML, I was worried about splitting between the two at first, and thought that it might be good to choose one approach and stick with it. But that would mean you'd have to choose XML, as annotations can't compete. That said,

Re: Ussage pattern for @Many and @One

2010-02-18 Thread Ing . Jan Novotný
I will try to do it. I might also contribute my presentation with example test cases - if you are interested. Jan 2010/2/18 Clinton Begin > Answered in a previous email RE: limitations of annotations. > > As for the documentation, please contribute an example that you find > helpful to the Wiki

Re: Multiple selects per lazy loaded objects?!

2010-02-18 Thread Ing . Jan Novotný
Thank you for answer. I understand now why all data were loaded at the first touch to the object and not at time when particular property is needed. But I still don't undestand why iBatis make two same select queries to the database (see the log please) - this might hit a performance in some cases.

Re: @SelectKey annotation missing

2010-02-18 Thread Ing . Jan Novotný
Created https://issues.apache.org/jira/browse/IBATIS-751. Thanks. 2010/2/18 Clinton Begin > I recommend entering a Jira feature request for this one. I can't recall > if it was left out for a reason, or if we just didn't get to it yet. > > Clinton > > 2010/2/18 Ing. Jan Novotný > >> Hello agai

Re: iBatis annotation related questions

2010-02-18 Thread Ing . Jan Novotný
Hello Clinton, many thanks for your answers. They made a lot of things much clearer to me - "the whitepaper" set a lot of expectations in the minds of many people (including me), so that's why I asked those questions. I am sure someone will ask me those questions at the presentation, so I want

Re: read large result set in Ibatis3

2010-02-18 Thread Martin Ellis
> On 2/18/2010 10:16 AM, Tomáš Procházka wrote: >> Ideal will be possibility to add method to mapper will return object >> on which I can call something like getNext(), hasNext() and close(). On 18 February 2010 17:44, Guy Rouillier wrote: > That is very JDBC-ish.  From my perspective, iBATIS att

Re: read large result set in Ibatis3

2010-02-18 Thread Guy Rouillier
On 2/18/2010 10:16 AM, Tomáš Procházka wrote: Ideal will be possibility to add method to mapper will return object on which I can call something like getNext(), hasNext() and close(). Statement will be open and Ibatis will be read and convert to object only one Object for every getNext call. Th

Re: Ussage pattern for @Many and @One

2010-02-18 Thread Clinton Begin
Answered in a previous email RE: limitations of annotations. As for the documentation, please contribute an example that you find helpful to the Wiki mentioned in the first couple of pages of the docs. Clinton 2010/2/18 Ing. Jan Novotný > Hello, > >after several minutes of trying I make up

Re: @SelectKey annotation missing

2010-02-18 Thread Clinton Begin
I recommend entering a Jira feature request for this one. I can't recall if it was left out for a reason, or if we just didn't get to it yet. Clinton 2010/2/18 Ing. Jan Novotný > Hello again :), > >when trying @Insert annotation I found out, that there is no mean how to > specify primary k

Re: Multiple selects per lazy loaded objects?!

2010-02-18 Thread Clinton Begin
This was a topic of much debate. It does that to allow internal references to private fields. But some people don't like that behavior, so in the next release (or in trunk if you want to check it out and build it), there's a configuration switch. The docs are already updated, so look for the agg

Re: iBatis annotation related questions

2010-02-18 Thread Clinton Begin
Hi Jan, >> expectations come from iBatis 3 Whitepaper Just to be clear, it wasn't a "white paper" it was a community whiteboard for brainstorming ideas. So it contained goals and ideas, but there was never a commitment to any of them. >> Multilevel Configuration Ultimately I decided not to imp

Re: read large result set in Ibatis3

2010-02-18 Thread Tomáš Procházka
Hi. I investigated this more detailed and ResultHandler is not what I neeed :-( I need keep jdbc statement open and get new item when I need. ResultHandler read all item and for every item call handleResult() I can handle when next item will be read. Ideal will be possibility to add method to

RE: IBATIS + GWT +Log4j

2010-02-18 Thread meindert
I found the 'solution' right after posting the question (isn't it always like that J) I had the commons logging jar on my classpath, after removing this jar the logging works as intended. From: meindert [mailto:meind...@eduflex.com] Sent: 18 February 2010 03:30 PM To: user-java@ibatis.apac

Multiple selects per lazy loaded objects?!

2010-02-18 Thread Ing . Jan Novotný
Hello again, I've found that for lazily loaded objects triggers multiple unnecessary selects and are executed all at load time not at the time, when I touch the property. I use 3-beta-9 and my settings are following:

IBATIS + GWT +Log4j

2010-02-18 Thread meindert
Hi All, I have been struggling for a while now to get the logging for ibatis working in GWT hosted mode. Is there anybody who had the same issue and has resolved it? The logging is setup correctly and works for my own logging statements What do is, at start-up, I pass the real path to a funct

@SelectKey annotation missing

2010-02-18 Thread Ing . Jan Novotný
Hello again :), when trying @Insert annotation I found out, that there is no mean how to specify primary key conciliation. Something like @SelectKey would be necessary but such annotation doesn't exist. Does that mean, that for annotation based approach the only way are autogenerated keys (usab

Ussage pattern for @Many and @One

2010-02-18 Thread Ing . Jan Novotný
Hello, after several minutes of trying I make up how to use @Many annotation - there is no example of it neither in documentation nor in iBatis test suite: @Select( "select product.*, product.id as idProduct, productGroup.name as groupName, productGroup.groupType" + " f

iBatis annotation related questions

2010-02-18 Thread Ing . Jan Novotný
Hello, I am going to have a presentation about iBatis 3 at Czech JUG. I have a 3-year experience with iBatis-2 and now I am doing little research on what's new in upcoming iBatis 3 release. Most of my expectations come from iBatis 3 Whitepaper at the iBatis Confluence site. Now I am testing the

Re: Ibator for ibatis 3

2010-02-18 Thread Guy Rouillier
On 2/17/2010 11:00 AM, Jeff Butler wrote: I've learned the hard way not to make projections as to when something will be completed :) I need to make some updates to the Ibator documentation, and then go through the arduous release process - not too fun. I'm also using Ibator and iBATIS3 on a ne