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
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,
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
>
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
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
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
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
>
>
>
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");
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
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
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
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
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
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
14 matches
Mail list logo