best way to use a Map?

2007-10-05 Thread Rusty Wright
I'm trying to figure out how to set up storing a Map of pairs of numbers. I have a Photo object, and it has a Map of the different sizes in which the Photo is stored on disk. The map keys are SIZE1, SIZE2, and SIZE3 (an enum; the map is an EnumMap). The values in the Map are a simple object,

What's the best way to handle multi-level table object?

2007-10-05 Thread Yu, Jack
In one of our environment, some stored proc uses multiple level table objects, such as: TopLevelTable Obj is table of TopLevelObj. Then in TopLevelObj, it contains variables which is table of some other objects. In this kind of multi-level table environment, seems I have to assign values to indiv

Extra objects in a list (not multiple independent lists)

2007-10-05 Thread Peter_J_Lee
I am having a problem which is inconsistent. I guess I am hoping for any suggestions about where I can dig into the Ibatis code to see if anything is going wrong or if anything is not supported with what I am trying. My assumption is that it lays somewhere in checking for a unique key in the

Re: iBatis cleanup

2007-10-05 Thread Koka Kiknadze
How about underlying connection pool? Imho one needs to close connection On 10/5/07, Larry Meadors <[EMAIL PROTECTED]> wrote: > > As with anything, you can set them to null just to be safe - if you do > that, the GC *may* get them sooner than if you don't. > > If you don't set them to null, they'

Re: Help needed for representing complex business relationship

2007-10-05 Thread Larry Meadors
Sounds like you could use a sub-select. Larry On 10/5/07, Amol Chaudhari <[EMAIL PROTECTED]> wrote: > > Larry, > thanks for the reply. > The issue is i have in the topmost section, few values which are calculated > from the child lists. So the lists are needed at the time of calculations > itsel

Re: iBatis cleanup

2007-10-05 Thread Larry Meadors
As with anything, you can set them to null just to be safe - if you do that, the GC *may* get them sooner than if you don't. If you don't set them to null, they'll remain referenced by the containing object and not be collectible until the containing objects are destroyed by the GC, which is kind

iBatis cleanup

2007-10-05 Thread Tom Henricksen
We have an application that has a ServletContextListener that creates three SqlMapClients in the contextInitialized. When the application is shutting down(in the contextDestroyed) should we just null out those SqlMapClient or does it matter. Called from the contextDestroyed public static v

Re: Unknown Column Name problem

2007-10-05 Thread Koka Kiknadze
Well, as long as error is after DEBUG ResultSet - {rset-12} ResultSet DEBUG SimpleDataSource - Returned connection 33534746 to pool. it seems to me that error occured after executing PreparedStetement, retrieving resultset and even returning connection to pool. Next comes mapping resultset to

Re: Help needed for representing complex business relationship

2007-10-05 Thread Amol Chaudhari
Larry, thanks for the reply. The issue is i have in the topmost section, few values which are calculated from the child lists. So the lists are needed at the time of calculations itself. Anyway, Can you please help me on the following issue: Lets say i have a Business object A having a1, a2, a3,

Re: Unknown Column Name problem

2007-10-05 Thread Claus Hausberger
Hello this is my log output: -- DEBUG SimpleDataSource - Created connection 33534746. DEBUG Connection - {conn-10} Connection DEBUG Connection - {conn-10} Preparing Statement: SELECT WID FROM WI.WITABLE DEBUG PreparedStatement - {pstm-11} Executing Statement: SELECT

Re: Help needed for representing complex business relationship

2007-10-05 Thread Larry Meadors
I'd defer fetching the child objects until needed. This approach offers two advantages: - it is simple on the UI side using swing or AJAX - it is simple on the iBATIS side, because you don't have to configure anything complex Larry On 10/5/07, Amol Chaudhari <[EMAIL PROTECTED]> wrote: > > Hel

Re: Unknown Column Name problem

2007-10-05 Thread Koka Kiknadze
Can you provide the log? Maybe error is raised not at the query execution but while mapping resultset to java object, i.e. you have typo in columnname in resultMap On 10/5/07, Claus Hausberger <[EMAIL PROTECTED]> wrote: > > Jeff, thanks. but that didn't help. > > I made a mistake describing my pro

Help needed for representing complex business relationship

2007-10-05 Thread Amol Chaudhari
Hello All, We recently started using iBatis. On one of our complex screens we have requirement like this: the screen is divided into 5 sections. A single section at the top and 2 sections placed side by side at center and 2 more sections placed side by side at the bottom. The relationship is pret