Sql statement and Meta-Data

2007-06-11 Thread Caio Zanchetti
Hi! Now I have another problem! (I'm sorry if my questions are so simple!) I would need to execute an sql statement created by the user. I will not have this statement mapped in my xml file. How can I do that? I would like to know to, how can I get the meta-data of a result (like the getMetadata

Re: Desktop apps with iBatis

2007-06-10 Thread Caio Zanchetti
I would encourage. Cheers, Chris -Original Message- From: Caio Zanchetti [mailto:[EMAIL PROTECTED]<[EMAIL PROTECTED]> ] Sent: Sun 6/3/2007 4:13 PM To: user-java@ibatis.apache.org; Chris Lamey Subject: Re: Desktop apps with iBatis Hello, tank you for reply. Would be possible to po

Re: Desktop apps with iBatis

2007-06-03 Thread Caio Zanchetti
Hello, tank you for reply. Would be possible to post a some code that shows how to initialize this application context? My application must have an ApplicationContext object with loaded definitions of applicationContext.xml file, is that correct? I tried this two alternatives: To implement Appl

Re: Desktop apps with iBatis

2007-05-24 Thread Caio Zanchetti
, each servlet container has its own way of registering JNDI resources. For the swing and standalone apps, the init() method puts DataSources in JNDI via Spring's SimpleNamingContextBuilder before initializing Spring. Cheers, Chris On Tue, 2007-05-22 at 00:02 -0300, Caio Zanchetti wrote: > H

Desktop apps with iBatis

2007-05-21 Thread Caio Zanchetti
Hello, I'm developing an application that initially will need to have a temporary desktop-based GUI (using Swing, for database tests purpose). But this app will be web-based in a few months. What I would like to know is how can I build this app using the integration between iBatis and Spring some

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

2006-11-22 Thread Caio Zanchetti
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]> wrote: I have a common table t

Re: cacheModel

2006-11-09 Thread Caio Zanchetti
Hi, I don't know if my explanation will be specific enough, but as I could understand, the cachemodel configures the use of a finite cache of objects that through a choosen algorithm mantains and updates objects in this cache for performance gain, when happends the database accesses. If the searc

Re: R: R: iBATIS Mapping

2006-10-27 Thread Caio Zanchetti
t2.id as area, t2.descricao AS descricao FROM usuarios t1, areas t2 WHERE t1.area = t2.id AND t1.id=#id# ... I use this system and all work fine Rinaldo -Messaggio originale- Da: Caio Zanchetti [mailto:[EMAIL PROTEC

Re: iBATIS Mapping

2006-10-27 Thread Caio Zanchetti
step by step of jPetStore app because the problem with Item and Product is really simillar.. Maybe the problem could be the sql statement that i created. Regards, On 10/27/06, Clinton Begin <[EMAIL PROTECTED]> wrote: That should work What does the area class look like? Cheers, Clinto

Re: R: iBATIS Mapping

2006-10-27 Thread Caio Zanchetti
n 10/27/06, Rinaldo <[EMAIL PROTECTED]> wrote: Hi, Control your Usuario class, it's seems that it's not correct Example Integer ID; String LOGIN; String SENHA; ... String EMAIL; Integer areaId; String areaDesc; Regards Rinaldo -Messaggio originale- Da: Caio Zanchett

iBATIS Mapping

2006-10-27 Thread Caio Zanchetti
Guys, i'm using the ibatis in a project in my company, could you please help me? The problem consists just in a retrive an object (of type Usuario) from the database, this object contains an object of type Area. All the others fields are OK (are populated perfectly). Only this object (Area) is no