I use iBatis as my DAO Layer for now. It works fine with no-args
constructor class.
Then it can setter properties in result map.
But If I have a class without no-args constuctor, how to instantiate
in iBatis, As there is a column in selection that can be used to pass
in constructor to create a ne
On Mon, 2006-09-11 at 13:35 -0700, Reuben Firmin wrote:
> The sqlmap config has a attribute, which can be used to
> load common properties. Is there a way I can configure this to point
> at a jndi key?
>
> Alternatively, where does the properties object get built out in the
> sqlmap object tree
The sqlmap config
has a attribute, which can be used to load common properties.
Is there a way I can configure this to point at a jndi key?
Alternatively, where
does the properties object get built out in the sqlmap object tree, so that I
can push values in from jndi?
Thanks
Reuben
I just wanted to thank everyone for their input and let you know there was a
bug reported with the mysql team. I sent that info to my host so hopefully
they get the patch in. But I agree that it is much safer to handle the
formatting in the Java code. On the to do list...
vc_ace wrote:
>
> I
You will also need private properties to map your results into and the
associated getters and setters.
I'd suggest reading the developers guide available on the ibatis site
first and then asking more detailed and specific questions. Here is a
link to the documentation I use.
http://cvs.apache
Ahh how about you just add an empty constructor...
public TestA() {
this("");
}
Problem solved.
On 9/11/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
I have a class,
class testA() {
public testA(String name) {
}
}
can it be used in result-map, if can how to write result map
--
Anthon
I have a class,
class testA() {
public testA(String name) {
}
}
can it be used in result-map, if can how to write result map
--
Anthony Hong