n+1 Problem NullPointerException

2006-11-30 Thread Warren
I am having problems with an n+1 sql map. I am getting the following error messages: --- The error occurred while applying a result map. --- Check the CatItem.catItemsResults. --- Check the result mapping for the 'items' property. --- Cause: java.lang.NullPointerException I have put the fol

Re: Mismatch of DTD and documentation?

2006-11-30 Thread Jeff Butler
I'm not sure what documentation you're referring to, but you're looking at the wrong thing! Current iBATIS documentation is available here: http://ibatis.apache.org/javadownloads.html But I think you want to use includes, which are documented here: http://opensource.atlassian.com/confluence/os

Mismatch of DTD and documentation?

2006-11-30 Thread Dave Rodenbaugh
Hi everyone, I searched the archives and JIRA for some resolution on this matter with no luck...perhaps someone could enlighten me on this one. According to the documentation: 3.3.4.8. extends When writing Sql, you often encounter duplicate fragments of SQL. iBATIS offers a simple yet powerf

Re: Another n+1 Question NullPointerException

2006-11-30 Thread Eric T. Blue
Warren, I believe you'll need to initialize promoPrices on declaration or in the constructor. List promoPrices = new ArrayList(); On 11/27/06, Warren <[EMAIL PROTECTED]> wrote: I am getting the following error messages when running an SQL Map: com.ibatis.dao.client.DaoException: Error execut

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Larry Meadors
On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: I wonder if this is a feature other people might want so that it is worth filing an enhancement request. I'm thinking along the lines of a special flag on the result node that specifies whether to create an object if a specified property is nu

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Stefan Langer
Larry Meadors wrote: On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: Larry Meadors wrote: > Not really, no. > > If you run this SQL in a database tool, it may become apparent > why..there is data there, it's just null. So iBATIS creates that > data...even if it is null. Well the data is th

RE: Problem when flushing caches by code on version 2.1.7

2006-11-30 Thread Macarron Miegemolle, Eduardo
Yep Brandon, we will upgrade soon but this will need re-testing and that will take quite a long time. In fact we are running into production this monday and this is one of the last minute bugs.. :( _ De: Brandon Goodin [mailto:[EMAIL PROTECTED] Enviado el: jueves, 30 de noviembre

Re: Problem when flushing caches by code on version 2.1.7

2006-11-30 Thread Brandon Goodin
I would say that you are safe to upgrade to ibatis 2.2.0. It has been in use now and I believe we are getting ready to vote GA on it. I would encourage you to upgrade and see if that fixes it. Brandon On 11/30/06, Macarron Miegemolle, Eduardo <[EMAIL PROTECTED]> wrote: Hi there,

Problem when flushing caches by code on version 2.1.7

2006-11-30 Thread Macarron Miegemolle, Eduardo
Hi there, Or app has an isolated module that serves data that usually don“t change. When we alter some rows at BD we call a method that is supposed to flush all caches. This is our flush code: public void invalidaCacheNegocio() { log.info("Inva

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Larry Meadors
On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: Larry Meadors wrote: > Not really, no. > > If you run this SQL in a database tool, it may become apparent > why..there is data there, it's just null. So iBATIS creates that > data...even if it is null. Well the data is there because I'm doing

Re: Abator: Wish for Complex Model Generation

2006-11-30 Thread Joe Weder
Jeff, I understand. I realize its beyond the intended scope of Abator. Maybe this is geared more toward helping with initial design, I don't know. The XSD idea... been doing some research on replication and related things we are working on. Seems like a lot of tools are beginning to be geared ar

Re: Return result as Map

2006-11-30 Thread c . zecca
Debasish Dutta Roy wrote http://www.mail-archive.com/user-java@ibatis.apache.org/msg04713.html > Wed, 21 Jun 2006 12:32:25 -0700 > > Map will work. > > 1. You have to mention as java.util.HashMap as has been mentioned by > Niels. Here point to be noted if you do not give a concrete class > then

Re: How to avoid implicit transaction ?

2006-11-30 Thread Ulrich Staudinger
On 11/29/06, Brandon Goodin < [EMAIL PROTECTED]> wrote: > > What version of iBATIS are you using? This seems like an issue we > addressed in the past. If you are not running the latest please > upgrade and reexamine this. If you are then please provide a repetable > test that displays this prob

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Stefan Langer
Larry Meadors wrote: Not really, no. If you run this SQL in a database tool, it may become apparent why..there is data there, it's just null. So iBATIS creates that data...even if it is null. Well the data is there because I'm doing a left join and there are no pages. This I understand. What I'