Re: Simple question...

2007-03-02 Thread Larry Meadors
arch 01, 2007 4:33 PM To: user-java@ibatis.apache.org Subject: RE: Simple question... Hi, I'm leaning towards the "no-way-in-the-world-would-this-work configuration" :) I think you should specify only one transactionManager element and include all SqlMaps from there. See the develope

RE: Simple question...

2007-03-01 Thread Dave Rodenbaugh
al Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 4:33 PM To: user-java@ibatis.apache.org Subject: RE: Simple question... Hi, I'm leaning towards the "no-way-in-the-world-would-this-work configuration" :) I think you should specify only one trans

RE: Simple question...

2007-03-01 Thread Niels Beekman
From: Dave Rodenbaugh [mailto:[EMAIL PROTECTED] Sent: donderdag 1 maart 2007 18:57 To: user-java@ibatis.apache.org Subject: Simple question... Is the following a legal config in the dao.xml? iBATIS 2.2.0 allows this initialization (i.e. no XML barfing), but I the first DB access (relating to th

Simple question...

2007-03-01 Thread Dave Rodenbaugh
Is the following a legal config in the dao.xml? iBATIS 2.2.0 allows this initialization (i.e. no XML barfing), but I the first DB access (relating to the order/sql-map-config.xml) when I use this construct gives me a "There is no statement named 'findOrderBy...' in this SqlMap"... I'm trying t

Re: Simple question

2006-11-10 Thread Koka Kiknadze
Rowhandler example is in the dev guide. But seems I've found a way to do without it. > at  this point changing the db schema is not an optionThe idea is to mimick splitting users tableMake a view like this select userID, customproperty1 from usersTable where customproperty1 is not nullUNION ALLsele

Re: Simple question

2006-11-10 Thread Amad Fida
Thanks Koka - But unfortunately at  this point changing the db schema is not an option, i know i can add all those getter\setters but i was hoping to find a easier way. Can you point me to an example of custom row handler?- Original Message From: Koka Kiknadze <[EMAIL PROTECTED]>To: user-ja

Re: Simple question

2006-11-10 Thread Koka Kiknadze
Seems the only way would be to write custom rowhanlder.However, I'd change design of database to match java object, i.e. would have separated CUSTOMPROPERTY-ies into a separate table. In that case you'd be able to populate the list along the lines described in dev guide. On the other hand iIf you t

Simple question

2006-11-10 Thread Amad Fida
All - I have a POJO which has a collection property as, public class User {    private List customProperties;    public List getCustomProperties() {        return customProperties;    }    public void setCustomProperties( List customProperties) {        customProperties = customProperties;     } }