Re: FileNotFoundException: http://www.mybatis.org/dtd/sql-map-config-2.dtd

2010-05-27 Thread Clinton Begin
ry changing the DOCTYPE of your XML files to the following. http://ibatis.apache.org/dtd/sql-map-config-2.dtd";> http://ibatis.apache.org/dtd/sql-map-2.dtd";> http://ibatis.apache.org/dtd/dao-2.dtd";> Notice the change to http://ibatis.apache.org/dtd/ Clinton On Thu, May

FileNotFoundException: http://www.mybatis.org/dtd/sql-map-config-2.dtd

2010-05-27 Thread mule_user
I am using iBatis version 2 and Spring 2.5 My XML: http://www.ibatis.com/dtd/sql-map-config-2.dtd";> my1.xml looks like: http://ibatis.apache.org/dtd/sql-map-2.dtd"; > When I start the server with the application deployed

Re: Sql Map

2010-05-18 Thread kiran vuppla
nks, Kiran From: Clinton Begin To: user-java@ibatis.apache.org Sent: Tue, May 18, 2010 9:53:25 AM Subject: Re: Sql Map You can read it in from the file and try to pass it in just like any other parameter. It's hard to fully understand what you're trying

Re: Sql Map

2010-05-18 Thread Clinton Begin
atis.apache.org > *Sent:* Mon, May 17, 2010 6:17:39 PM > *Subject:* Re: Sql Map > > If it's in a property file, can you just do this at the build stage? It > will be faster to do so too. > > Clinton > > On Mon, May 17, 2010 at 2:42 PM, kiran vuppla > wrote: >

Re: Sql Map

2010-05-18 Thread kiran vuppla
: Clinton Begin To: user-java@ibatis.apache.org Sent: Mon, May 17, 2010 6:17:39 PM Subject: Re: Sql Map If it's in a property file, can you just do this at the build stage? It will be faster to do so too. Clinton On Mon, May 17, 2010 at 2:42 PM, kiran vuppla wrote: > >Hi, > > &

Re: Sql Map

2010-05-17 Thread Clinton Begin
If it's in a property file, can you just do this at the build stage? It will be faster to do so too. Clinton On Mon, May 17, 2010 at 2:42 PM, kiran vuppla wrote: > Hi, > > I would like if we can do the following check in the Query inside > statement. I am reading the property from property f

Sql Map

2010-05-17 Thread kiran vuppla
Hi, I would like if we can do the following check in the Query inside statement. I am reading the property from property file instead of parameter map. Though I have the property(CONSTRAINT) in the property file, this is not getting added to the existing SQL statement. Can someone help me.

Re: Problem with sql map XML files inside jar

2010-04-26 Thread Larry Meadors
Everything everywhere should always be utf-8, IMO. ;-) ISO-8859-1, WIN-1251, and MacRoman are all of the devil. Larry 2010/4/26 Björn Raupach : > Ok, solved my issue. I added the following statement before instantiating > SqlSessionFactory. > > [..] > Resources.setCharset(Charset.forName("UTF-

Re: Problem with sql map XML files inside jar

2010-04-26 Thread Björn Raupach
Ok, solved my issue. I added the following statement before instantiating SqlSessionFactory. [..] Resources.setCharset(Charset.forName("UTF-8")); reader = Resources.getResourceAsReader(resource); SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader,props); [..] Maybe UTF-8 sho

Problem with sql map XML files inside jar

2010-04-22 Thread Björn Raupach
Hi, there are some german umlauts in my mapper files. In fact all the column and table names in the database are in german. Unit tests run fine. If I create a jar file and include all the mapper files, the application crashes with an sql exception because the umlauts in the table name are not

SQL Map Question

2009-09-19 Thread Luke Shannon
I have just used Ibator for the first time. I notice that the sql it generated had an Id like this: However in the same file that sql id is referenced like this: members is the table that I ran Ibator against. I just added this table name to the id in the sql reference and everything worked

IBatis sql map IBator sql map woes (noob)

2009-06-12 Thread david
Hello IBatis dev, gurus and mortals, I have a Wicket/AppFuse web application in Eclipse that uses a simple xxxsql.xml map. The web app builds and deployes OK on both jetty and tomcat. Then, I installed the IBator Eclipse plugin and generated the artifacts for the xxxsql.xml mapped as generated b

Re: Best practice to configure SQL Map for a web application

2009-05-23 Thread Clinton Begin
You can use a factory, a singleton, or a dependency injection container such as Spring or Guice. Cheers, Clinton On Sat, May 23, 2009 at 9:08 PM, Anoop kumar V wrote: > I was reading the example that ships with Ibatis and the initializer block > has this comment before configuring the S

Best practice to configure SQL Map for a web application

2009-05-23 Thread Anoop kumar V
I was reading the example that ships with Ibatis and the initializer block has this comment before configuring the SQL Map. I was just curious what is the best practice of configuring one if not in the class initializer / a constructor? I was hoping to call the class as part of the servlet init

Re: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Warren Bell
m two different datasources? And should the construction of an object be completed in the DAO? Warren Brandon Goodin wrote: You are correct. Brandon Goodin On Fri, May 1, 2009 at 1:48 PM, Srinivas Doddi <mailto:srinivas_do...@gap.com>> wrote: We were using two separate Sql Map Confi

Re: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Brandon Goodin
You are correct. Brandon Goodin On Fri, May 1, 2009 at 1:48 PM, Srinivas Doddi wrote: > We were using two separate Sql Map Configuration files for this kind of > scenario. In IBATIS, I guess there is no way of specifying two different > Sql maps clients in a single configura

Re: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Brandon Goodin
gt; > Thanks > > > On Fri, May 1, 2009 at 2:21 PM, Brandon Goodin > wrote: > >> Why not create a separate SqlMapClient for the Oracle database? >> >> Brandon Goodin >> >> >> >> On Fri, May 1, 2009 at 1:09 PM, Bhaarat

RE: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Srinivas Doddi
We were using two separate Sql Map Configuration files for this kind of scenario. In IBATIS, I guess there is no way of specifying two different Sql maps clients in a single configuration file. ( Correct me, if I am wrong) Thank you. SRINIVAS DODDI From

Re: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Bhaarat Sharma
t; > On Fri, May 1, 2009 at 1:09 PM, Bhaarat Sharma wrote: > >> Hi >> Currently our sql-map-config looks like this: >> >> >> >> >> >> >> >> >> >> >> >> >> >> In the

Re: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Bhaarat Sharma
also, we have a spring-for-ibatis.xml file where we have code like this so can I then just add another bean with jndi like this: then another bean for sql-map-client (I will have to make another xml right? say sql-map-client1.xml) and then start

Re: how to have two datasources in sql-map-config.xml

2009-05-01 Thread Brandon Goodin
Why not create a separate SqlMapClient for the Oracle database? Brandon Goodin On Fri, May 1, 2009 at 1:09 PM, Bhaarat Sharma wrote: > Hi > Currently our sql-map-config looks like this: > > > > > > > > > > > > > &g

how to have two datasources in sql-map-config.xml

2009-05-01 Thread Bhaarat Sharma
Hi Currently our sql-map-config looks like this: In the above we only have one JDBC connection and this connection goes to a SQL Server. However, now we will have to access another DB which is in Oracle. So we will have to create another JDBC connection and have

Re: Sql Map file

2009-04-22 Thread Stephen Boyd
WebSphere encodes the password using XOR in an xml file which is not the same an encrypting.

Re: Sql Map file

2009-04-21 Thread Chris O'Connell
I would suggest the appserver route. In at least the version of weblogic that I am using, the password is saved to the file system, but it is encrypted in the config file. If that isn't possible, just encrypt the password yourself and put some decryption code in an extension of the datasource. On

Re: Sql Map file

2009-04-21 Thread Brandon Goodin
You could use JNDI, or can extends the simple datasource and add your own hashing. I'm not sure why you are that concerned about the password being in there. If someone gets access to your WEB-INF folder and you don't want them in there... you have bigger issues my friend. :) Brandon On Tue, Apr

Re: Sql Map file

2009-04-21 Thread Alex Sherwin
Not sure about doing it programatically, but it's going to end up being cleartext (or close to it) somewhere... For example when you use a connection pool in an app server, the user/password ends up being plain text in your domains configuration file... I believe most people focus on securing

Sql Map file

2009-04-21 Thread Jhaver, Rishi
Hi I'm new to Ibatis and was wondering if anyone's faced this issue before. Couldn't find a solution on the website FAQs. I have the following in my sqlmapconfig file. I dont want the user name and password to be exposed as clear text in a config f

Re: I would like to create a sql map dynamically

2009-02-12 Thread Larry Meadors
On Wed, Feb 11, 2009 at 7:33 PM, Vorius wrote: > I am referring to programmatically altering the sql maps (specifically, > adding entirely new select statements) once the applciation has already > started. I believe that Clinton did some stuff to make that possible with ibatis2 (it's definitely d

Re: I would like to create a sql map dynamically

2009-02-11 Thread Jiming Liu
$fullsql$ Is this ok for you?

Re: I would like to create a sql map dynamically

2009-02-11 Thread Vorius
t; You can search document for details > > > > On Thu, Feb 12, 2009 at 4:59 AM, Vorius wrote: > >> >> Is it possible to create a sql map dynamically? >> >> I was reading about a method of creating an xml stream in memory and >> passing >> that to I

Re: I would like to create a sql map dynamically

2009-02-11 Thread Jiming Liu
Using $param$ in sql. You can search document for details On Thu, Feb 12, 2009 at 4:59 AM, Vorius wrote: > > Is it possible to create a sql map dynamically? > > I was reading about a method of creating an xml stream in memory and > passing > that to Ibatis but I was hoping

I would like to create a sql map dynamically

2009-02-11 Thread Vorius
Is it possible to create a sql map dynamically? I was reading about a method of creating an xml stream in memory and passing that to Ibatis but I was hoping of a way of doing it using getters/setters. Is there any new method that may accomplish this? -- View this message in context: http

Re: SQL-Map / CDATA Performance Issue

2009-02-01 Thread Nathan Maves
t > > version. Am I mistaken? Where can I get the latest version of the docs? > > > > -Original Message- > > From: Chema [mailto:demablo...@gmail.com] > > Sent: Saturday, January 31, 2009 2:18 PM > > To: user-java@ibatis.apache.org > > Subject: Re: SQL

Re: SQL-Map / CDATA Performance Issue

2009-02-01 Thread Kai Grabfelder
rs Guide available on the website that it was the latest > version. Am I mistaken? Where can I get the latest version of the docs? > > -Original Message- > From: Chema [mailto:demablo...@gmail.com] > Sent: Saturday, January 31, 2009 2:18 PM > To: user-java@ibatis.ap

RE: SQL-Map / CDATA Performance Issue

2009-01-31 Thread M. Goodell
Sent: Saturday, January 31, 2009 2:18 PM To: user-java@ibatis.apache.org Subject: Re: SQL-Map / CDATA Performance Issue Yes, yours is old. Mine is dated on November 30, 2006 (2.3.x ) 2009/1/31 M. Goodell : > Thanks for your help. I do not see a reference to statementCaching in my > ver

Re: SQL-Map / CDATA Performance Issue

2009-01-31 Thread Clinton Begin
Do you have statememnt logging enabled? On 1/31/09, MGG List Subscription wrote: > When I format the SQL within my insert element like Example 1.0 and time > several application calls the performance is degraded *substantially*. > However, if I format the SQL as shown in Example 1.1 the performan

Re: SQL-Map / CDATA Performance Issue

2009-01-31 Thread Chema
gt; iBATIS-SqlMaps-2_en.pdf > > Is there more recent docs available other than the ones I have? > > -Original Message- > From: Chema [mailto:demablo...@gmail.com] > Sent: Saturday, January 31, 2009 1:54 PM > To: user-java@ibatis.apache.org > Subject: Re: SQL-Map

RE: SQL-Map / CDATA Performance Issue

2009-01-31 Thread M. Goodell
: Chema [mailto:demablo...@gmail.com] Sent: Saturday, January 31, 2009 1:54 PM To: user-java@ibatis.apache.org Subject: Re: SQL-Map / CDATA Performance Issue About docs: statementCachingEnabled (iBATIS versions 2.3.0 and later) With this setting enabled, iBATIS will maintain a local cache of

Re: SQL-Map / CDATA Performance Issue

2009-01-31 Thread Chema
brief example of turning on statement caching? I > have read without it there is a performance hit. > > Thanks! > > M. Goodell > > -Original Message- > From: Chema [mailto:demablo...@gmail.com] > Sent: Saturday, January 31, 2009 1:12 PM > To: user-java@ibatis.a

RE: SQL-Map / CDATA Performance Issue

2009-01-31 Thread M. Goodell
: Saturday, January 31, 2009 1:12 PM To: user-java@ibatis.apache.org Subject: Re: SQL-Map / CDATA Performance Issue What version are you using ? Do you have statement caching enabled ? 2009/1/31 M. Goodell : > Looking further into this it seems to have little to do with the CDATA tag > b

Re: SQL-Map / CDATA Performance Issue

2009-01-31 Thread Chema
NTO people (last_name,first_name,age) VALUES > (#lastName#,#firstName#,#age#); > > -Original Message- > From: M. Goodell [mailto:mggl...@comcast.net] > Sent: Saturday, January 31, 2009 12:52 PM > To: Chema; user-java@ibatis.apache.org; mggl...@comcast.net > Subject: RE: SQL-Ma

RE: SQL-Map / CDATA Performance Issue

2009-01-31 Thread M. Goodell
12:52 PM To: Chema; user-java@ibatis.apache.org; mggl...@comcast.net Subject: RE: SQL-Map / CDATA Performance Issue Here is some more information: 1.) Using (Format A) and inserting 10,000 records this takes roughly 12-15 seconds. (Format A) 2.) Using (Format B) and inserting 10,000 records

RE: SQL-Map / CDATA Performance Issue

2009-01-31 Thread M. Goodell
- From: Chema [mailto:demablo...@gmail.com] Sent: Saturday, January 31, 2009 12:24 PM To: user-java@ibatis.apache.org; mggl...@comcast.net Subject: Re: SQL-Map / CDATA Performance Issue And without CDATA tag ? Same performance ? Indeed, I don't know why you use it for that query 2009

Re: SQL-Map / CDATA Performance Issue

2009-01-31 Thread Chema
And without CDATA tag ? Same performance ? Indeed, I don't know why you use it for that query 2009/1/31 MGG List Subscription : > When I format the SQL within my insert element like Example 1.0 and time > several application calls the performance is degraded *substantially*. > However, if I forma

SQL-Map / CDATA Performance Issue

2009-01-31 Thread MGG List Subscription
When I format the SQL within my insert element like Example 1.0 and time several application calls the performance is degraded *substantially*. However, if I format the SQL as shown in Example 1.1 the performance improves dramatically. It seems the larger the SQL statement and the more "pretty" fo

using system properties to configure sql-map-config.xml

2009-01-28 Thread loctorp
hello everybody; We have a situation where we need a map as follows: show tables from ${DATABASE}$ LIKE "%$tableName$%"; right now we set the property {DATABASE} in a property file that is loaded into sql-Map-config.xml file. This works all right... For our JA

Re: Can queryForMap(...) behaviour be mimicked in the SQL Map XML files?

2008-05-30 Thread Derek Alexander
> Can queryForMap(...) behaviour be expressed in the SQL Map XML files? I guess the answer is "no" then. Expect it wouldn't be too much work to add this as a feature though. In the way Complex Collection Properties (List or Collection of a business object) can be loaded n

Can queryForMap(...) behaviour be mimicked in the SQL Map XML files?

2008-05-28 Thread Derek Alexander
getDepartmentId(), "employeeId"); However, was wondering if there is any way this can be done directly in the SQL Map XML file so I take advantage of lazy loading. Cheers, D. -- View this message in context: http://www.nabble.com/Can-queryForMap%28...%29-behaviour-be-mimicked

iBatis sybase stored procedure use return value of one query to another in batch execute sql map

2007-10-25 Thread Kani
I need help in mapping the following batch statement in iBatis sql map. declare @newFuncIdnumeric(7,0), @newFailureId numeric(7,0), @newEffectid numeric(7,0) , @newCauseID numeric(7,0) , @newControlID numeric(7,0

Re: Dynamic sql map with java.util.List

2007-08-27 Thread Brandon Goodin
Since you are using 2.1.7 you will need to upgrade and try this with the most current version. I believe this issue is fixed in the most current version. I could be wrong. I made the same comment on the JIRA ticket. But, I figured it would be worth repeating here. Thanks, Brandon On 8/27/07, Mich

Re: Dynamic sql map with java.util.List

2007-08-27 Thread Brandon Goodin
Please open a JIRA ticket on this if it does not exist. In the meantime you may want to pass your list in nested in a map. Brandon On 8/27/07, Michel Amaral <[EMAIL PROTECTED]> wrote: > > When I use parameterClass of java.util.List type with dynamic notation > ($[].field$), the property (after do

Dynamic sql map with java.util.List

2007-08-27 Thread Michel Amaral
When I use parameterClass of java.util.List type with dynamic notation ($[].field$), the property (after dot) is ignored and the toString method of the current list element is called instead of the indicated property, for example, the follow statement map is calling toString twice: SELECT FROM

Re: SQL Map Problem - iterating through a list, using a like query

2007-03-06 Thread Ted Schrader
Hi Ayan, Brad - i believe when you have a WHERE clause already specified, you do not need to use "". You're thinking is probably right on this, but I'll go ahead and be a bit more explicit on the tag (hopefully I'm not hijacking the thread too much here). Let's suppose we have a query that *

Re: SQL Map Problem - iterating through a list, using a like query

2007-03-06 Thread ayan . m . afridi
03/06/2007 05:20 PM Please respond to user-java@ibatis.apache.org To user-java@ibatis.apache.org cc Subject Re: SQL Map Problem - iterating through a list, using a like query Could it be that you are missing the tag wrapped around the ? [EMAIL PROTECTED] wrote: Hi, I am trying to do a

Re: SQL Map Problem - iterating through a list, using a like query

2007-03-06 Thread Brad Balmer
Could it be that you are missing the tag wrapped around the ? [EMAIL PROTECTED] wrote: Hi, I am trying to do a select from a table, using dynamic sql like so: SELECT * FROM TABLE_NAME WHERE STATUS = 'A'

Re: SQL Map Problem - iterating through a list, using a like query

2007-03-06 Thread Koka Kiknadze
On 3/7/07, Jeff Butler <[EMAIL PROTECTED]> wrote: I don't believe the iterator works with string substitution, so you'll need to use parameters instead Well, seems in fact it does - I have the following working: (main_detail_type_id = $serviceDetails[].deta

Re: SQL Map Problem - iterating through a list, using a like query

2007-03-06 Thread Jeff Butler
I don't believe the iterator works with string substitution, so you'll need to use parameters instead (#accountList[]#). Of course, this presents its own unique set of problems. It would be best to add the % characters in the DAO. Else, you'll have to do the concatentation in SQL. You'll likel

SQL Map Problem - iterating through a list, using a like query

2007-03-06 Thread ayan . m . afridi
Hi, I am trying to do a select from a table, using dynamic sql like so: SELECT * FROM TABLE_NAME WHERE STATUS = 'A' UPPER(ACC_SHRT_NM) like UPPER('%$accountList[]$%') Basically I want this query to create a bunch of "like" clauses using the elements of the List

Re: Adding a sql map at run time

2007-03-02 Thread Ted Schrader
Hi Tegan, There may be other ways to solve your problem. How much SQL are the users allowed to enter? Perhaps it can be done by using $value$ instead of #value# in critical places in an existing sql map (This is how WHERE clauses in Abator-generated sql maps work for the query-by-example bits

Adding a sql map at run time

2007-03-02 Thread Tegan Clark
Hi all, Does anyone have any pointers for how I would add a sql map to the SqlMapClient at runtime. I'm writing a GUI that lets a use enter a piece of SQL and I'm using iBATIS to do the heavy lifting of mapping my java parameters to the sql and executing it and doing the retu

Re: Issues on converting Old Dao to Ibatis sql-map

2006-11-06 Thread Larry Meadors
Use a Map, and please read the developer's guide. http://ibatis.apache.org/javadownloads.html Larry On 11/6/06, Makunda Thapa <[EMAIL PROTECTED]> wrote: Hi, I all, I have been involved to convert old daos to sql mapper xml. One of the problem I having is.My old daos uses same field in more t

Issues on converting Old Dao to Ibatis sql-map

2006-11-06 Thread Makunda Thapa
Hi, I all, I have been involved to convert old daos to sql mapper xml. One of the problem I having is.My old daos uses same field in more than one params. I have to keep adding these fields in to my VO to pass in to the sql mappers. For example Object[] params

Re: sql map via Java API

2006-06-26 Thread Edwin Lukaweski
Larry Meadors" <[EMAIL PROTECTED]> To: Sent: Thursday, June 22, 2006 9:54 PM Subject: Re: sql map via Java API The advantages would be parameter mapping, resource management, and result mapping. The disadvantages are the increased potential for sql injection, a slight loss of

Re: sql map via Java API

2006-06-22 Thread Larry Meadors
: user-java@ibatis.apache.org Subject: Re: sql map via Java API Yes - good one!!! However, just to carry this a bit further, ideally, I would like to have iBatis prepare this once and then use the prepared statement. As I understand it, 'remapResults=true' will force a lot of work due to exa

RE: sql map via Java API

2006-06-22 Thread Yusuf
bject: Re: sql map via Java API Yes - good one!!! However, just to carry this a bit further, ideally, I would like to have iBatis prepare this once and then use the prepared statement. As I understand it, 'remapResults=true' will force a lot of work due to examining the resul

Re: sql map via Java API

2006-06-22 Thread Edwin Lukaweski
Thursday, June 22, 2006 2:52 PM Subject: Re: sql map via Java API Yeah, it's risky, but life is about risks, right? :-) remapResults="true">$generatedSqlStatement$ Larry On 6/22/06, Edwin Lukaweski <[EMAIL PROTECTED]> wrote: Hi: Is there any way of subm

Re: sql map via Java API

2006-06-22 Thread Larry Meadors
Yeah, it's risky, but life is about risks, right? :-) $generatedSqlStatement$ Larry On 6/22/06, Edwin Lukaweski <[EMAIL PROTECTED]> wrote: Hi: Is there any way of submitting a new ..... SQL Map snippet via the Java API. Or, alternatively, is there a way of contructing an o

sql map via Java API

2006-06-22 Thread Edwin Lukaweski
Hi:       Is there any way of submitting a new . SQL Map snippet via the Java API. Or, alternatively, is there a way of contructing an object, from iBatis, that accomplishes the same thing?     What I am trying to do is build a SELECT statement at execution time, based on parameters

RE: sql-map-config pb

2006-06-21 Thread Rashmi Dixit
correction (Sorry for repeating, I wasn’t sure if I was clear enough in my earlier mail) Regards ~Rashmi -Original Message- From: jeremy jardin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 3:11 PM To: user-java@ibatis.apache.org Subject: RE : sql-map-config pb Yes, thx a lot

RE : sql-map-config pb

2006-06-21 Thread jeremy jardin
Yes, thx a lot ! Is it possible to set that conf as default using Abator ? -Message d'origine- De : Rashmi Dixit [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 juin 2006 11:36 À : user-java@ibatis.apache.org Objet : RE: sql-map-config pb I guess this is because your in your set

RE: sql-map-config pb

2006-06-21 Thread Rashmi Dixit
To: user-java@ibatis.apache.org Subject: RE : sql-map-config pb Thx all right ! But now, I have another pb parsing sqlmap file : could not find SQL statement to include with refid 'UTILISATEUR.abatorgenerated_Example_Where_Clause' I checked my sql-map.xml config file (gener

Re: RE : sql-map-config pb

2006-06-21 Thread Torsten Michelmann
Hi Jeremy, you would also need something like ##SQL here## in the sqlmap. Torsten Original-Nachricht Datum: Wed, 21 Jun 2006 11:30:31 +0200 Von: jeremy jardin <[EMAIL PROTECTED]> An: user-java@ibatis.apache.org Betreff: RE : sql-map-config pb > Thx all right ! >

RE : sql-map-config pb

2006-06-21 Thread jeremy jardin
derstand what's the matter with that file !! Thx ! -Message d'origine- De : Rashmi Dixit [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 juin 2006 11:18 À : user-java@ibatis.apache.org Objet : RE: sql-map-config pb You need to correct the DOCTYPE entry at the begi

RE: sql-map-config pb

2006-06-21 Thread Rashmi Dixit
You need to correct the DOCTYPE entry at the beginning of your file. http://www.ibatis.com/dtd/sql-map-config-2.dtd";> ~Rashmi From: jeremy jardin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 2:42 PM To: user-java@ibatis.apache.org

sql-map-config pb

2006-06-21 Thread jeremy jardin
Hello,   I’m first time using Ibatis, and I have a problem with the sql-map-config.xml file.   I write it like that :   xml version="1.0" encoding="UTF-8"?> DOCTYPE sql-map-config PUBLIC "-//iBATIS.com           //DTD SQL M

Re: Sql Map self call

2006-03-22 Thread Robert Felker
It's corrected now, my lacks about ibatis make me search the error at the wrong place. Thank for your kind help. Robbie.

RE: Sql Map self call

2006-03-22 Thread Niels Beekman
And how would that error look like? Seems like this should work just fine. Niels -Original Message- From: Sol [mailto:[EMAIL PROTECTED] Sent: woensdag 22 maart 2006 18:04 To: user-java@ibatis.apache.org Subject: Sql Map self call I all, i'm totally new to IBatis so i need some pie

Sql Map self call

2006-03-22 Thread Sol
I all, i'm totally new to IBatis so i need some piece of advices ! column="idOperationParent"/> select * from operation where id=#value# Is this kind of map executable by IBatis ? i'm getting a error.

Sql Map self call

2006-03-22 Thread Sol
I all, i'm totally new to IBatis so i need some piece of advices ! column="idOperationParent"/> select * from operation Is this kind of map executable by IBatis ? i'm getting a error.

Re: dynamic sql map

2006-01-12 Thread Nathan Maves
You are asking us if your code works? A few things I might change... 1. change your tag to a 2. add a parameter class attribute to the select 3. If you are going to have different numbers of columns selected then you need to set reMapResults = true. This is really the lazy mans way to thin

dynamic sql map

2006-01-12 Thread Henry Lu
Is this sql mapping works in the IBATIS? select $list_cols$ FROM $table_name$ Map map = new HashMap(2); map.put("list_cols", "STATE_ABBRV, STATE"); map.put("table_name", "USSTATE_DESC"); return getSqlMapClientTemplate().queryForList( "select_list", map); -Hen

Re: dynamic sql map

2006-01-11 Thread Larry Meadors
You need to get your SQL logging working - search the archives to get that working. The problem you are having are not iBATIS issues, they are because the SQL that you are building is broken. Get your logging working, and the resolution will be apparent. Larry On 1/11/06, Henry Lu <[EMAIL PROT

Re: dynamic sql map

2006-01-11 Thread Henry Lu
I made changes and it worked! But now I made more changes and it broken again: org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [] in task 'SqlMapClient operation'; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred while applying a

Re: dynamic sql map

2006-01-11 Thread Ben Munat
If you're using commons logging (and you should be), you can set logging for "java.sql" to debug (in the properties file version: "log4j.logger.java.sql=DEBUG"). This will print all the generated SQL, along with parameters and result sets, in your log. Also, it looks like the error message says

RE: dynamic sql map

2006-01-11 Thread Voorhoeve, Niels {PBG}
EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 11:15 AM To: user-java@ibatis.apache.org Subject: dynamic sql map I got errors: org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [] in task 'SqlMapClient operation'; nested exception is com.ibatis.common.jdbc.exception.Nes

Re: dynamic sql map

2006-01-11 Thread Larry Meadors
I always try to simplify first, then add stuff until it breaks. For example, try this: select STATE_ABBRV as m_name, STATE as m_value FROM USSTATE_DESC Does that work? You may also want to enable logging, and/or try something like p6spy to see the SQL. This is a SQL error, based on the me

dynamic sql map

2006-01-11 Thread Henry Lu
I got errors: org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [] in task 'SqlMapClient operation'; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in edu/umich/med/umms/coreyp/dao/ibatis_map/misc.xml. --- The error occurred whil

Re: utilizing nested iterate tags in SQL Map xml file -- is it supported?

2005-12-01 Thread Mark Nabours
cc| | | | Subject| |Re: utilizing nested iterate tags in SQL Map xml file -- i

Re: utilizing nested iterate tags in SQL Map xml file -- is it supported?

2005-12-01 Thread Jeff Butler
st of objects of arelated class (for example player).  Is it possible to iterate over bothlists by nesting iterate tags in the SQL map file?If it is possible, are there examples on how to do this?  We've tried everything we could think of but without any luck.Thanks for your help,Mark--

utilizing nested iterate tags in SQL Map xml file -- is it supported?

2005-11-30 Thread Mark Nabours
lists by nesting iterate tags in the SQL map file? If it is possible, are there examples on how to do this? We've tried everything we could think of but without any luck. Thanks for your help, Mark - E-mail Disclaimer: The information contained in t

RE: calling trim() on sql map returned strings

2005-10-27 Thread Gareth Moorst
Absolutely. -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 27 October 2005 14:10 To: user-java@ibatis.apache.org Subject: RE: calling trim() on sql map returned strings Would you agree that being able to replace the default String type handler would make your

RE: calling trim() on sql map returned strings

2005-10-27 Thread Ron Grabowski
it's > very verbose. > > Cheers, > Gareth. > > -Original Message- > From: Nathan Maves [mailto:[EMAIL PROTECTED] > Sent: 26 October 2005 17:58 > To: user-java@ibatis.apache.org > Subject: Re: calling trim() on sql map returned strings > > > wh

RE: calling trim() on sql map returned strings

2005-10-27 Thread Gareth Moorst
ed the type handler/resultmap solution - it's less invasive, even if it's very verbose. Cheers, Gareth. -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 17:58 To: user-java@ibatis.apache.org Subject: Re: calling trim() on sql map returned s

Re: calling trim() on sql map returned strings

2005-10-26 Thread Nathan Maves
back is that you can't say "use this type handler for all strings". You have to specify the special type handler per each item in your parameterMap/resultMap. A lot of people don't use parameter maps. Its a pain to have to specify a type handler for each and ever String in

RE: calling trim() on sql map returned strings

2005-10-26 Thread Ron Grabowski
to have to specify a type handler for each and ever String in your sql map files. Being able to set the type handlers globally cuts down on the amount of extra clutter in your sql map files. --- Gareth Moorst <[EMAIL PROTECTED]> wrote: > That's interesting... I'll have a look a

RE: calling trim() on sql map returned strings

2005-10-26 Thread Gareth Moorst
That's interesting... I'll have a look at that tomorrow- The sqlmapconfig dtd does have a typehandler child.. Cheers -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 17:13 To: user-java@ibatis.apache.org Subject: RE: calling trim()

RE: calling trim() on sql map returned strings

2005-10-26 Thread Ron Grabowski
TECTED] > Sent: 26 October 2005 13:34 > To: user-java@ibatis.apache.org > Subject: Re: calling trim() on sql map returned strings > > > Hi Gareth, > > Doesn't Informix have a trim-like function you could apply in your > query? > > Like: > > se

RE: calling trim() on sql map returned strings

2005-10-26 Thread Gareth Moorst
hat way is that I can't use select * anymore, but suppose I'll have to live with that. Ta. -Original Message- From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 13:34 To: user-java@ibatis.apache.org Subject: Re: calling trim() on sql map returned

Re: calling trim() on sql map returned strings

2005-10-26 Thread Daniel Henrique Ferreira e Silva
lf at all clear in that last email - > it must still be too early in the day for rational thought... > > what I want to do is call trim() on all the strings I return from the db. > > -Original Message- > From: Gareth Moorst > Sent: 26 October 2005 10:01 > To: user-ja

RE: calling trim() on sql map returned strings

2005-10-26 Thread Gareth Moorst
email - it must still be too early in the day for rational thought... what I want to do is call trim() on all the strings I return from the db. -Original Message- From: Gareth Moorst Sent: 26 October 2005 10:01 To: user-java@ibatis.apache.org Subject: calling trim() on sql map returned

  1   2   >