Re: Lack of BeanInfo support

2006-10-09 Thread Kris Schneider
On 10/9/06, Clinton Begin <[EMAIL PROTECTED]> wrote: >> I haven't, but I think the JavaBeans standard is actually much more >> pervasive than most folks realize Which is a very good thing. I'm quite familiar with the full spec, and I'm very happy that 99% of Java developers only know (or at lea

Re: Lack of BeanInfo support

2006-10-09 Thread Clinton Begin
>> I haven't, but I think the JavaBeans standard is actually much more>> pervasive than most folks realizeWhich is a very good thing.  I'm quite familiar with the full spec, and I'm very happy that 99% of Java developers only know (or at least use) 1% of it.  >> How about the possibility of pluggi

Re: Lack of BeanInfo support

2006-10-09 Thread Kris Schneider
On 10/9/06, Clinton Begin <[EMAIL PROTECTED]> wrote: Only two reasons: 1) Performance. At the time (not sure about now) ClassInfo was much faster than BeanUtils. Understood. I wasn't suggesting that iBATIS should use BeanUtils, it was just an example of extending JavaBeans while maintaining c

Re: Lack of BeanInfo support

2006-10-09 Thread Clinton Begin
Only two reasons:1) Performance.  At the time (not sure about now) ClassInfo was much faster than BeanUtils.2) More important -- I never thought in a million years anyone would ever touch that nightmare of an API ... BeanInfo. Seriously...I would strongly recommend you avoid that stuff.  You're wan

Lack of BeanInfo support

2006-10-09 Thread Kris Schneider
Not sure if this should be a dev list discussion, but I'll start it here and see where it leads... I guess I never realized this, but iBATIS doesn't seem to honor BeanInfo classes. For example, given this class: public class Foo { private String name; public String name() { return this.nam

Null pointer with Multiple Complex Parameters Properties

2006-10-09 Thread Andrea Ballatore
Hi, I have a problem related to Multiple Complex Parameters Properties. Here is the ResultMap: <...> Here is the invoked subQuery: SELECT COD_CLIENTE, DESC_CLIENTE, COD_TIPO_CLI FROM V_CLIENTE

Re: Updating Multiple Tables per Single Root Object

2006-10-09 Thread Larry Meadors
Yeah, that is why i was saying to use a stored procedure. Also, remember that the UoW pattern will only detect your changes, not changes someone else made in the database. Larry On 10/9/06, Nathan Ward <[EMAIL PROTECTED]> wrote: Looks like another option is to keep track of the changes with

Re: use of abstract classes in sqlMap

2006-10-09 Thread Jeff Butler
iBATIS introspects classes at initialization time.  You've configured iBATIS to think that the Relationship class has a comment property - which it doesn't.   If you want to have iBATIS introspect with every statement, then you can use a Map instead of a JavaBean.   You could also add abstract getC

Re: use of abstract classes in sqlMap

2006-10-09 Thread Larry Meadors
Why would you use a relationship instance to populate a friend table? That seems inappropriate. At any rate, if you ditch the parameter class (it is not required) it will work. Larry On 10/9/06, Guido García Bernardo <[EMAIL PROTECTED]> wrote: Imagine the following abstract class: public

Re: iBATIS with the embedded Derby JDBC driver

2006-10-09 Thread Jeff Butler
If a column can be null, then you need to specify the JDBC type in the mapping.  For example:     insert into sometable (id, desc)   values(#id:INTEGER#, #desc:VARCHAR#)   This is true for all the DB2-like databases.   Jeff Butler     On 10/9/06, Zsolt <[EMAIL PROTECTED]> wrote: Hi,Our product use

RE: schema prefix in abator generated files

2006-10-09 Thread Hariharan, Vadivelu \(IE10\)
Yep, it worked! Thx. -Original Message- From: Graeme J Sweeney [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 6:14 PM To: user-java@ibatis.apache.org Subject: RE: schema prefix in abator generated files On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote: > I don't see anyth

Re: use of abstract classes in sqlMap

2006-10-09 Thread Leandro Saad
Hi Guido,iBatis can't tell which subclass of RelationShip you want to create. You can try to configure the ObjectFactory in sqlMap to achive this behavior.:: LeandroOn 10/9/06, Guido García Bernardo <[EMAIL PROTECTED]> wrote: Imagine the following abstract class: public abstract class Rel

RE: schema prefix in abator generated files

2006-10-09 Thread Graeme J Sweeney
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote: I don't see anything called useStatementNamespaces="true" element in the DTD. Could you be more specific See your sqlMapConfig, http://ibatis.apache.org/dtd/sql-map-config-2.dtd. -- Graeme -

iBATIS with the embedded Derby JDBC driver

2006-10-09 Thread Zsolt
Hi, Our product uses the services of iBATIS and we are using MySQL for the database layer. We recently tried out the Derby database engine and we were mainly successful. We have an issue though, which seems to be related to iBATIS. While things are under control with the networked Derby JDBC d

RE: schema prefix in abator generated files

2006-10-09 Thread Hariharan, Vadivelu \(IE10\)
I don't see anything called useStatementNamespaces="true" element in the DTD. Could you be more specific -Original Message- From: Graeme J Sweeney [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 4:30 PM To: user-java@ibatis.apache.org Subject: Re: schema prefix in abator genera

Re: Transform List resultmap to Map

2006-10-09 Thread Javier Leyba
On 10/5/06, Larry Meadors <[EMAIL PROTECTED]> wrote: There are several things you could do here. Instead of mapping the child results in the config, you could step through the parent list and use queryForMap() in the dao to populate the child maps. You could leave the config as is and walk thro

RE: Updating Multiple Tables per Single Root Object

2006-10-09 Thread Nathan Ward
Looks like another option is to keep track of the changes with something like the Unit Of Work pattern in Patterns of Enterprise Architecture, by Martin Fowler. I'm thinking I'll try that route.      Nathan From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 7:35 AMT

Re: Updating Multiple Tables per Single Root Object

2006-10-09 Thread Nathan Ward
Hello,   I'm considering how best to update a list of objects referenced by a "root" object. I see a discussion of this topic from July (http://www.mail-archive.com/user-java@ibatis.apache.org/msg05237.html).   In order to update the related tables, I suppose my DAO needs to query those t

Re: schema prefix in abator generated files

2006-10-09 Thread Graeme J Sweeney
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote: If I prefix each if the "id" elments with the namespace type, the problem is fixed Can't abator generated the id elements with the namespace prefix, or is there any setting I'm missing in my properties file Are namespaces enabled in yo

use of abstract classes in sqlMap

2006-10-09 Thread Guido García Bernardo
Imagine the following abstract class: public abstract class Relationship {     private String dateRelation;     private Integer idUser;     // getters & setters } That allows to define several kinds of relations, i.e: public class Friendship extends Relationship {     private String comment;

Re: Open quote error diagnostic while parsing a resultMap

2006-10-09 Thread C . Zecca
Thanks, Larry. There were some goofy indistinguishable quote characters :/ Now I get other diagnostics, but this is another story. [EMAIL PROTECTED] scritti il 06/10/2006 19:03:33 > looks like a goofy quote char to me: " instead of " > > Larry