Hi Nathan,
I'm trying to optimize the code. For example, I wanna delegate the check, if
referenced objects are NULL to the iBATIS.
Reza
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. September 2005 21:35
An: user-java@ibatis.apache.org
I understand that. Coz., with iBatis even now we use multiple files for different databases. I thought you were suggesting something different.
Sorry about that.
Scott Zhu <[EMAIL PROTECTED]> wrote:
No, the way the localization look up work in java, you have one default property file, and th
No, the way the localization look up work in java, you have one default property file, and the ones with locale postfix. For example, you have staticMessages.properties and staticMesage_en_GB.properties. In the latter one, you only store the british english specific tranlations. At runtime, if the
I don't know if this would be a good idea. Consider your example of Localization resource lookup(not the directory based approach but the file based approach) for example the ApplicaitonResouces.properties in struts, are you saying it is good to have one huge file with sections like INI file for d
Yes, we used some approach like this, but we have to do it on our own. I'd like to see this to be done in iBatis. Essecially, this could work like localization resource lookup in java, if the database type is oracle, it first looks in that name space (or something), if it can't find the statement t
Good thoughts. I'd like to hear from others on this. I think iBatis
should definitely try to help developers attack this problem (without
trying to solve it directly -- a la Hibernate).
_
Patrick Lightbody
Professional Services
Jive Software
[EMAIL PROTECTED]
www.jivesoftware.com
You could create different property files per each vendor that contain
database specific things (like the select key statement, GETDATE() ,
etc.) and use it this way:
${SELECT_KEY}
Some people use this property syntax to group database specific sql
maps:
A colleague of mine suggeste
Title: Configuration info
As I mentioned in my last email, we’re trying to get WebWork and iBatis playing nice with each other. Specifically, I want to enable advanced functionality, such as intelligent reloading of the iBatis configuration whenever a mapping file changes. So far I’ve accompl
Title: Vendor specific queries?
Hey guys – great work on iBatis. I finally spent some time on it and I must say I prefer this method of storage much more than other options out there. In fact, the next version of WebWork (which I am a developer for) will contain integration with iBatis. Now,
Can you do this with your database?:
insert into table (...) values (...)
where someValeu in (select something from someTable where yourCondition)
Some databases (for sure PG SQL and M$ SQL) allow this.
Larry
On 6 Sep 2005 22:33:38 -, sreenivas <[EMAIL PROTECTED]> wrote:
Hi Larry,
Tha
Hi Larry,
Thanks for the response. I agree with your suggestion to place the condition in DAO class, but I wanted to do this for one reason.
I want to check status of a particular field using select, if there exists data for the select in that nano second, no insert should be made, insert new
Sort of - you could do it with a statement using dynamic sql, but you will not be able to use the selectKey element.
IMO this is a bad idea - do the logic in your DAO class instead of in a mapped statement.
Larry
On 6 Sep 2005 21:29:00 -, sreenivas <[EMAIL PROTECTED]> wrote:
Hi,
I have a r
Hi,
I have a requirement where I need to do conditional SQL execution(insert/update).
I would like to know whether or not this is possible in iBatis without writing any stored procedure.
Thanks and regards,
Sreenivas
Two things come to mind:
1. Make sure you've configured the resource reference in your web.xml or ejb-jar.xml as appropriate. You've configured iBATIS to use a reference, rather than the actual JNDI name (a good thing).
2. Make sure the iBATIS name matches the resource reference name. You see
Hi everyone.
The following mostly affects users of the Java version of iBATIS, but it's always nice to keep our C# friends in the loop.
I have good news and bad news. The good news is that iBATIS is
very popular and in August we served up over 1,000,000 of the
sql-map-2.dtd. Most versions of iB
I run from the IDE, i haven create one war,ear.ç
I have create one main class for this pourpose.
whithout using the jndi, usinf the jdbc driver direcktly it conects but i
cannot use my jndi.
- Original Message -
From: "Nathan Maves" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, September 06
Hi,
We configure iBatis to use a jndi connection by default as well. To avoid
including AS vendor specific jars in your build (or even having the AS
running), you can use any of the mock object providers out that that allow
you to create a context. Here's how we do it with spring's mock object
l
You have to run your application inside the container. I assume that
you are creating a WAR(or EAR) file and deploying it to websphere.
If not, you need to.
How are you running the application?
Nathan
On Sep 6, 2005, at 1:58 PM, Dionisio Egiluz Ruiz de Zárate wrote:
i am ttring to conf
i am ttring to configure ibatis for using one connection pool configured
into my websphere
i have one jndi name (jdbc/dsDIT) and for connect i have into the ibatins
conf file (SqlMapConfig.xml) this:
http://www.ibatis.com/dtd/sql-map-config-2.dtd";>
but when i test the conectio
I believe that you are doing everything correct. Are things not
working or are you trying to find a better solution?
Nathan
On Sep 6, 2005, at 3:35 AM, Farsi, Reza wrote:
Hi all,
I'm testing iBATIS by the means of one simple scenario using object
composition.
There are two objects Inst
Hi Clinton,
I must ask of you to excuse the verbosity of this email. But, I need to gain a better understanding about how I might go about building a custom batch API so that I may get IBatis DAO's to properly do batching.
In our last conversion, you explained the following:
"The batch contr
Con ibatis puedes hacer tódo lo que se pueda hacer
con sentencias sql. Por lo tanto puedes hacer joins de
tantas tablas como quieras en una única consulta.
__
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://corre
is posible with ibatis using somethigs like this:
SELECT DITT01CATEGORIAS.cateid, DITT01CATEGORIAS.catetitulo
FROM DITT01CATEGORIAS INNER JOIN DITT02FOROSDETALLE ON
DITT01CATEGORIAS.cateid = DITT02FOROSDETALLE.cateid
this into two tables to make one sql
how?
thanks
iBATIS is free, open source software under the Apache License, Version 2.0.
http://www.apache.org/licenses/LICENSE-2.0
Cheers,
Clinton
On 9/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
is ibatis opensource?GPL?
is ibatis opensource?
GPL?
If you want to set the base path, you could use a property variable.
BasePath="file://var/config/ibatis/"
${BasePath}/config/Customer.xml " />
Clinton
On 9/6/05, Koranda Matthew James <[EMAIL PROTECTED]> wrote:
The developer guide also gives this example:file:///c:/config/Customer.xml " />if
Yes, you can use a join and avoid the N+1 selects problem. I'd
point you to our FAQ, but Confluence is broken right now. :-/
There is some basic documentation in the developer guide. Have a
look there first (look for groupBy and resultMap). If you still have
questions after reading the docs, t
Are you trying to run this outside of the container?
Jason
On 9/6/05 7:03 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello
> i am trying to work using ibatis.
> I am working into one websphere (WSAD).
> In this websphere i have create one datasouce to one sql server database.
> I am t
Hi there!
Is it possible to set some kind of timeout when useing the connection ?
E.g. if you haven't got any response by 1 minute, the connection stops
waiting and throw an SQLException or something ?
--
We have a strange case here, doing some standard SQL wildcard searches with
LIKE.
Search
Hello
i am trying to work using ibatis.
I am working into one websphere (WSAD).
In this websphere i have create one datasouce to one sql server database.
I am try to use ibatis with this conf file (SqlMapConfig.xml)
http://www.ibatis.com/dtd/sql-map-config-2.dtd";>
th
Hi all,
I'm testing iBATIS by the means of one simple scenario using object composition.
There are two objects Instrument and Dividend. On the side of the database the
tables are defined as followed:
create table instrument (
id int not null auto_increment primary key,
name varc
Hi,
I'm new to iBATIS.
Following question:
When a class is referencing an another class, how can I load the referencing
class with only one select. Imagine, you have classes Fund and Transaction.
Transaction has in database a filed for fund_id that references a Fund.
At the Moment, I have two
Hola tu clase, la que me has pasado, que no he podido ponerla ya que
implemente una interfaz que no la tengo, me la he convertido a esto que te
pongo abajo.
Luego lo que pretendo es probarlo desde una clase main para lo cual hago:
public class PruebaIbatis extends MyAppSqlconfig{
public s
The developer guide also gives this example:
if this is what you want but it doesn't seem as portable. Is this what
you mean?
Matt
-Original Message-
From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
Sent: 6. september 2005 10:51
To: user-java@ibatis.apache.org
Subject: Re: search
On Tue, Sep 06, 2005 at 10:42:07AM +0200, Koranda Matthew James wrote:
> I bundle the files along side my class files and jar the whole thing
> together. Just add the full paths in you config:
>
> Is that what you mean?
Not really, I don't want to jar the config for now and put it in the
classpat
Muy buenas!!!
Necesitas una clase que carge tu configuración. Te
mando el código de la mía con la que realizo las
transacciones. Lo único que tienes que hacer es
extender a la que te mando y utilizar los métodos de
la superclase, o sea, los de mi clase abstracta,
desde la subclase.
public class A
I bundle the files along side my class files and jar the whole thing
together. Just add the full paths in you config:
Is that what you mean?
Matt
-Original Message-
From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
Sent: 6. september 2005 10:36
To: user-java@ibatis.apache.org
Subjec
Is there any way to specify the path where to search for the mapping files?
I simply don't want to store the iBATIS files in the WEB-INF/classes for my
WEB application
--
Eugene N Dzhurinsky
Hello i am one new user with ibatis and i cannot probe my application, i
dont know how i must to made it.
i have the bellow xml config files and java file.
now how can i probe that it runs?
how can i made one java class for running this?
can you help me please?
i am with this problem during 3 days
:) I stand corrected, it works fine the way you describe in your first
example.
It is easy to assume if there isn't a concrete example of the way you
want to do something that it doesn't exist. Which brings us to
documentation, I would be happy to add an example of this in the
appropriate section.
40 matches
Mail list logo