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
>> 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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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
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
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
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
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;
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
21 matches
Mail list logo