Re: How to use sqlmap to create an object with not empty construnctor

2006-09-11 Thread Anthony Hong
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

Re: non-code way to read properties from jndi?

2006-09-11 Thread Chris Lamey
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

non-code way to read properties from jndi?

2006-09-11 Thread Reuben Firmin
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

Re: Ibatis crashing MySQL when I use DATE_FORMAT

2006-09-11 Thread vc_ace
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

Re: How to use sqlmap to create an object with not empty construnctor

2006-09-11 Thread Diran Ayandele
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

Re: How to use sqlmap to create an object with not empty construnctor

2006-09-11 Thread Nathan Maves
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

How to use sqlmap to create an object with not empty construnctor

2006-09-11 Thread Anthony Hong
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