RE: How to use type handler callbacks inside quiries?

2005-07-04 Thread Zeltner Martin
Once again.   How does I have to use TypeHandlerCallbacks inside the #myProperty#? I DON'T want to use a separate parameter maps only because I'm needing a type handler for one column!   Thanks for your help in advance!   Cheers, Martin    -Original Message-From: Clinton Begin [mai

Re: How to use type handler callbacks inside quiries?

2005-07-04 Thread Clinton Begin
True Daniel, It's possible.  But I do sympathize with Marting, as it currently is a pain in the butt.  The biggest issue is that you have to ensure that the parameters line up exactly.  That is, you need to ensure that all paths of the conditional results result in the exact same number and type

Re: There is no READABLE property named error

2005-07-04 Thread Larry Meadors
System.out.println(Introspector.decapitalize("P813NAME")); Gives us --> p813NAME Mr. Begin wins the gold star. :-) Here is a nice utility to save you some time next time: public static void main(String arg[]) throws Exception { BeanInfo bi = Introspector.getBeanInfo(Account.class); Pr

Re: Advantage of Map over Bean as a parameterObject?

2005-07-04 Thread Larry Meadors
On 7/3/05, netsql <[EMAIL PROTECTED]> wrote: > > > 2nd one: > 2)You don't have to change or maintain it. > As project evolves and front end and back end evolve... there is no > maitanance or CRUFT or duplication. CRUFT - (n) The results of shoddy construction. Hmm, every application I have eve

Re: Advantage of Map over Bean as a parameterObject?

2005-07-04 Thread Larry Meadors
Yes, there are many examples using Maps. You have convinced me to try not to do another one with a Map; Beans are truly the better way to go. Larry On 7/3/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: > > > > Thanks the reason I asked was because all the examples I have seen online > se

Re: Countng Rows

2005-07-04 Thread Larry Meadors
Not the source of the issue, but it looks like you have an extra "where" in that statement, too. On 7/3/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: > > > > I have quick question please… I am trying to run a select count(*) and seem > to be getting a ClassCast Exception… here is the cod

Re: How to use type handler callbacks inside quiries?

2005-07-04 Thread Daniel Henrique Ferreira e Silva
Hi Martin, Why can't you use a parameter map in a dynamic statement? That _is_ possible in iBATIS. Just check the documentation. Cheers, Daniel Silva. On 7/4/05, Zeltner Martin <[EMAIL PROTECTED]> wrote: > Hi, > > How does I have to declare type handler callbacks inside #myData#? > I can not us

How to use type handler callbacks inside quiries?

2005-07-04 Thread Zeltner Martin
Hi, How does I have to declare type handler callbacks inside #myData#? I can not use a parameter maps, because my statement contains dynamic parts. Thanks, Martin

RE: Countng Rows

2005-07-04 Thread Folashade Adeyosoye
public class DaoConfig {     private static final DaoManager daoManager;     static {       try {   String resource = "net/naijatek/fgconline/persistence/dao.xml";   Reader reader = Resources.getResourceAsReader(resource);   daoManager = DaoManagerBuilder.buildDaoManage