Spring+ibatis+jboss4.x [CachedConnectionManager] Closing a connection for you.

2007-01-30 Thread Anthony Hong
hibernate + spring run on jboss to contol the connection close on each transaction. how to configure with ibatis? Thanks a lot!! -- Anthony Hong

Re: How to convert data type in java code with ibatis framework

2006-11-22 Thread Anthony Hong
wrote: Hi, I don't know if I could understand very well your question, but you can define an "extension" through the TypeHandlerCallback class implementation. Than you will can automatic convert between two types. Regards, On 11/21/06, Anthony Hong <[EMAIL PROTECTED]> wro

How to convert data type in java code with ibatis framework

2006-11-21 Thread Anthony Hong
ow to achieve with ibatis help, something like before paremeter set I can do something. Or in result map. I can do convertion. -- Anthony Hong

Is it possible to change sql before ibatis execute it?

2006-10-10 Thread Anthony Hong
suppose a have a common field in each table, say client_id. I want each sql append client_id = 123 automaticly, 123 is pass by invoker dynamiclly. How could I achieve this goal? Is there any interceptor or hook provided by ibatis that I can use? Thanks. -- Anthony Hong

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

2006-09-12 Thread Anthony Hong
Thanks Gareth, It's clear for me now.

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

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

Re: Re: Unit test problem with sql cache

2006-07-02 Thread Anthony Hong
Is this impossible to achieve? On 6/30/06, Anthony Hong <[EMAIL PROTECTED]> wrote: Thanks, I already tried it, but doesn't work. DTD only accept true/false for this attribute. On 6/30/06, Torsten Michelmann <[EMAIL PROTECTED]> wrote: > Not sure if it works, but you m

Re: Re: Unit test problem with sql cache

2006-06-30 Thread Anthony Hong
d then you can use cacheModelsEnabled=${isCacheEnabled} Original-Nachricht Datum: Fri, 30 Jun 2006 21:23:56 +0800 Von: Anthony Hong <[EMAIL PROTECTED]> An: user-java@ibatis.apache.org Betreff: Re: Unit test problem with sql cache > I saw sqlMapconfig has settings wit

Re: Unit test problem with sql cache

2006-06-30 Thread Anthony Hong
I saw sqlMapconfig has settings with cacheModelsEnabled How to change it dynamicly. Or Can I seperate sql map settings and sql map resource into two file and merge them in using? On 6/30/06, Anthony Hong <[EMAIL PROTECTED]> wrote: I use db unit test to do intergration test with sql. One

Fwd: Unit test problem with sql cache

2006-06-30 Thread Anthony Hong
during web application page. -- Anthony Hong -- Anthony Hong

Re: Does sqlmap support polymorphism in result-map

2006-06-11 Thread Anthony Hong
Any example or links can be provides? I cannot find it through ibatis developer guideline and sqlmap document to descibe how to use it. Thanks. On 6/11/06, Gilles Bayon <[EMAIL PROTECTED]> wrote: Yes, use discriminator tag in Result-Map. -Gilles -- Anthony Hong

Does sqlmap support polymorphism in result-map

2006-06-11 Thread Anthony Hong
create Class B Can this be achieved in ibatis result-map support? Thanks in advance -- Anthony Hong

Is there anyway to reload sqlmap.xml during system runing

2006-01-24 Thread Anthony Hong
hi all, I have a problem during development. SQLMapClient will read resource of sqlmap configuration. SQLMap have sqls defined in there. My problem is if sql failed. I can redeploy correct one but do not have to restart web server. dynamic reload the latest updated sql map file. Can? -- Anthony

How about ibatis performance

2006-01-24 Thread Anthony Hong
I'm novice of ibatis. I interested in it, its simple but with many useful functions. Anybody can tell me thing about its performance? How slow its compare with JDBC. In my mind, SQL is written by yourself. So it should have good controlling on sql performance -- Anthony Hong