Re: programmatic transaction management in ibatis

2007-07-31 Thread Andrey Rogov
Kumar, may be this should help. programmatic transaction management method - import org.springframework.transaction.PlatformTransactionManager ; import org.springframework.transaction.TransactionDefinition ; import org.springframework.transaction.TransactionStatus ; import org.springframework.t

RE: programmatic transaction management in ibatis

2007-07-31 Thread Elangovan, Kumaravel
Hi All, Thanks for your help. We have implemented it using ibatis dao manager. daoManager.startTransaction(); daoManager.commitTransaction(); daoManager.endTransaction(); Its working fine. Regards, Kumar _ From: Andrey Rogov [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Running dynamic sp

2007-07-31 Thread John Dahl
OK, I did it successfully with "$" operator. One thing I would like to know is can we prevent sql injection in this case. Thank you for the solution. John Dahl wrote: > > Ok, here is my requirement. I need to run different sp having different > parameters. For eg. I need to run following sps >

Re: Running dynamic sp

2007-07-31 Thread Larry Meadors
Only if you control the value of sp_name very carefully. If someone can set it to "drop table order;--" you're screwed. :-) Larry On 7/31/07, John Dahl <[EMAIL PROTECTED]> wrote: > > OK, I did it successfully with "$" operator. > One thing I would like to know is can we prevent sql injection in

RE: Basic mapping in iBatis

2007-07-31 Thread Hemant . Kamatgi
The resultmap shown below can be used for M:1 relationship also. For eg: > > > > . > This shud work, I guess. Regards Hemant -Original Message- From: HHB [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 5:45 PM To: [email protected] Subject

Re: Running dynamic sp

2007-07-31 Thread Ashok Madhavan
i would always prefer not to use '$'. else you will have to check what is sent in the '$' and make sure it is proper and what u want. anyways i like the methods being different for your scenario regards ashok On 7/31/07, Larry Meadors <[EMAIL PROTECTED]> wrote: > > Only if you control the value

RE: Basic mapping in iBatis

2007-07-31 Thread HHB
Well, I think this map should go in OrderItem.xml file? or it doen't matter? Thank man. Hemant.Kamatgi wrote: > > The resultmap shown below can be used for M:1 relationship also. > For eg: >> >> >> > >> . >> > > This shud work, I guess. > > Regards > Hemant > > >

Newbie question: execution, invocation, doit, getResults ...

2007-07-31 Thread Charles_Magid
I am an Abator & IBatis newbie. I'm trying to figure out how to invoke my query given the criteria I have established. In other words, what goes in the area labeled "Fill in the blank" below? Reader reader = Resources.getResourceAsReader("com/rbm/db/SqlMapConfig.xml");

Re: Newbie question: execution, invocation, doit, getResults ...

2007-07-31 Thread Jeff Butler
It depends. If you are using one of the generated DAO classes, you can invoke the generated "selectByExample" method. If you are not using DAOs, then you do this: List answer = sqlMap.queryForList("table_namespace.abatorgenerated_selectByExample", pite); Where "table_namespace" is the value in

RE: Newbie question: execution, invocation, doit, getResults ...

2007-07-31 Thread Charles_Magid
Thank you Jeff that worked fine. -Original Message- From: Jeff Butler [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 3:53 PM To: [email protected] Subject: Re: Newbie question: execution, invocation, doit, getResults ... It depends. If you are using one of t

Newbie DAO question: Methods missing from Abator generated DAOImp file. Am I missing a configuration param for abatorCongif.xml?

2007-07-31 Thread Charles_Magid
I switched over to trying to generate with Abator using DAO. I added the DAO jar file ibatis-dao-2.jar. Then I deleted all of the generated artifacts. I also added the line: to the abatorConfig.xml file. And I receive the following compile time error. Severity and Description Path R

Re: Newbie DAO question: Methods missing from Abator generated DAOImp file. Am I missing a configuration param for abatorCongif.xml?

2007-07-31 Thread Jeff Butler
You need to make sure that you have the latest standalone DAO distribution from the web site - 2.2.0. (http://ibatis.apache.org/javadownloads.cgi) But (and we never get tired of saying this) - it would be better if you would use Spring DAOs. IBATIS DAO is deprecated and will not be further enhanc

[ibatis2]can I use a class with inner classes as resultMap?

2007-07-31 Thread 钟原froast
hi, I have a class like this: package com.gehouse.bean.ge; public class GEElementStyleBean { public class IconStyle { int id; float scale; boolean transparent; public int getId() { return id; } public void setId(int id) { this.id = id; } public float getScale() { retur

Abator enhancement

2007-07-31 Thread Ashok Madhavan
hi abator guys, Abator has the concept of rootClass for the javaModelGenerator. Many of our POJOs need to extend from a parent class. we use this feature. But abator overrides all the methods in the parent class and i manually cleaned up these methods in the generated pojo. i had some free time a