Re: iBatis with MySQL and UTF-8 encoding

2009-03-20 Thread Graeme J Sweeney
On Thu, 19 Mar 2009, Paweł Gutowski wrote: mysql-connector-java-5.1.7 What could be wrong? Are you using 'useUnicode=yes&characterEncoding=UTF8' in the connection URL? -- Graeme -

RE: Using Operators in Compare Value in Ibatis Result maps

2008-11-11 Thread Graeme J Sweeney
On Tue, 11 Nov 2008, [EMAIL PROTECTED] wrote: XML does not support < and > operator as it is. You have to use OR < > ? -- Graeme -

Re: Upgrading from PostgreSQL 8.1 to 8.3 and escaping special characters

2008-08-19 Thread Graeme J Sweeney
On Mon, 18 Aug 2008, Warren Bell wrote: Has anyone else had this problem after upgrading to Postgres 8.3? I have tried the Postgres users list and the Postgres JDBC users list and have gotten no where. Have you tried the 8.1 driver with 'compatible=8.1' in the connection string? IIRC I ran

Re: Deploying gwt + iBatis + MySql via Tomcat

2008-07-25 Thread Graeme J Sweeney
On Fri, 25 Jul 2008, Chris Marshall wrote: According to a previous post[1] you have WEB-INF/context.xml but this should be /META-INF/context.xml according to http://tomcat.apache.org/tomcat-6.0-doc/config/context.html [1] http://www.mail-archive.com/user-java@ibatis.apache.org/msg11892.html

Re: Delete statements cannot be executed as a query

2008-04-30 Thread Graeme J Sweeney
On Wed, 30 Apr 2008, supriya .pelluru wrote: i am getting this error Delete statements cannot be executed as a query. at com.ibatis.sqlmap.engine.mapping.statement.DeleteStatement.executeQueryForObject(DeleteStatement.java:33) You're using queryForObject instead of delete. -- Graeme -

Re: Abator + Linux

2008-03-12 Thread Graeme J Sweeney
On Wed, 12 Mar 2008, slaughter wrote: I found the double / by trying a lot of stuff. Something is wrong with your setup, single / works fine. Are these files derived from a Win32 box? -- Graeme -

Re: Abator: Could not find SQL statement to include with refid

2008-02-21 Thread Graeme J Sweeney
On Thu, 21 Feb 2008, Ryan Shelley wrote: Is there a way to either 1) get the namespace to be recognized, or 2) remove the namespace -- Graeme -

Re: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationExc eption

2008-02-15 Thread Graeme J Sweeney
On Fri, 15 Feb 2008, erosik wrote: i am using ibatis in my jsp application, i have created db with a unique field (e.g. id) so when i insert a record with same id again i m getting error like this, can any one help to sort out this exception com.mysql.jdbc.exceptions.MySQLIntegrityConstrai

Re: < and > comparison in sql queries are not accepted by ibatis

2007-12-10 Thread Graeme J Sweeney
On Mon, 10 Dec 2007, Thomas Rene Vervik wrote: So my question would be - how do you manage to make < and > comparisons in queries using ibatis ? You're dealing with XML, so use CDATA sections or entities < and > < < > -- Graeme -

Re: about a space at the end

2007-11-21 Thread Graeme J Sweeney
On Wed, 21 Nov 2007, smelly wrote: I am using ibatis and oracle 10. The jdbc driver is oracle.jdbc.driver.OracleDriver. When I retrieve data from table, I found a space ' ' is appended. Let's say column ACTIVE_IND CHAR(1), the data retrieved is 'A '. is it weird? Does anybody have idea? CHAR

RE: iBatis gives no error but no results!

2007-11-14 Thread Graeme J Sweeney
On Wed, 14 Nov 2007, [EMAIL PROTECTED] wrote: Thanks Graeme. It appears to be a problem with the Strings. On hardcoding #family#, #group# and #type# with the actual Strings but using #firstContractId# and #secondContractId# as params it works. However setting the Strings as params and hardcod

RE: iBatis gives no error but no results!

2007-11-14 Thread Graeme J Sweeney
On Wed, 14 Nov 2007, [EMAIL PROTECTED] wrote: Thanks for the suggestion but that is exactly what I did - not too clear I'm afraid in the last part of my email: I thought Niels meant that you should keep 'between 12377813 and 12378073' hardcoded and test the remaining fields as parameters?

Re: AW: unexpected ExceptionInInitializerError

2007-11-09 Thread Graeme J Sweeney
On Fri, 9 Nov 2007, Jeremy Jardin wrote: uhu;. I did not change anything on my log4j.properties file... The project is in developpement part, so, the appender is the console... I'm losing all my time with that pb !! :-( Sounds more like an eclipse issue and not being an eclipse user .

Re: Ibatis freezing on insert

2007-10-30 Thread Graeme J Sweeney
On Tue, 30 Oct 2007, Rich Midwinter wrote: This has worked previously, I wouldn't have changed the jar since but MySQL could have been updated. My code's definitely changed since - I haven't committed it to version control yet though. :-s It could be a bug introduced in 5.0.45 Usual advi

Re: Ibatis freezing on insert

2007-10-30 Thread Graeme J Sweeney
On Tue, 30 Oct 2007, Rich Midwinter wrote: It's completely repeatable. I'm using a MySQL database and when I manually enter the query it works fine. Can anyone suggest where I might be going wrong? Thanks Which version of MySQL and jdbc connector? -- Graeme -

Re: Ibatis and charset

2007-09-18 Thread Graeme J Sweeney
On Tue, 18 Sep 2007, maomaode wrote: JDK6 + Mysql-Conn-3.0.10 + Mysql 5.0.45 + GBK (or GB2312, not the utf8) AIUI all your Unicode will be converted to GBK, yet your inserts now seem to work (server-side conversion?). My Chinese characters is in UTF-8 (load from xml file, and encoded with

Re: Ibatis and charset

2007-09-17 Thread Graeme J Sweeney
On Mon, 17 Sep 2007, maomaode wrote: But if I insert the Chinese char into the table, i still got the junk characters. Anyone have solutions to this? jdbc:mysql://localhost/mydb?characterEncoding=utf8 Your Chinese characters must be utf-8 and your viewing platform must be utf-8 enabled too

Re: Trying to insert hebrew text, mysql stores ??? instead

2007-09-17 Thread Graeme J Sweeney
On Sun, 16 Sep 2007, startxxx wrote: my database tables are set utf8 netbeans debugger shows me the hebrew value of the string fine one line before i insert it using iBatis. anything else? Set characterEncoding=utf8 on the connection URL but it's not an iBatis issue. -- Graeme -

Re: Trying to insert hebrew text, mysql stores ??? instead

2007-09-16 Thread Graeme J Sweeney
On Sun, 16 Sep 2007, startxxx wrote: The database seem to hold hebrew text if I add it using the mysql query browser and the hebrew values show fine when selected from my application using iBatis - so I have all reasons to believe it's not a mysql setup issue (unless I'm missing something in bet

Making use of statementCachingEnabled

2007-08-16 Thread Graeme J Sweeney
Hi, I'm trying to use statementCachingEnabled to see if I can speed up an insert task and the inserts are executed within a batch. The log gives the following sequence: Connection Preparing Statement Executing Statement Connection Preparing Statement Executing Statement Should I get: Connec

Re: New to iBatis

2007-06-14 Thread Graeme J Sweeney
On Thu, 14 Jun 2007, vinays84 wrote: Hi, I'm trying to learn iBatis SQL Maps. I've gone through the basic tutorial provided on the iBatis site. The tutorial only deals with one table and doesn't explain how to handle several tables with links. Is there a simple tutorial out there that handles t

Re: No Statement...

2007-05-31 Thread Graeme J Sweeney
On Thu, 31 May 2007, Giovanni D'Addabbo wrote: Ok it work very well but i've read in the book that i can use dot notation, for example Account.gettAllUsers ok now is the problem...how can i use this dot notation? :D IIUC, you need to enable namespaces: ... ... ... sele

Re: Locale issues?

2007-03-28 Thread Graeme J Sweeney
On Tue, 27 Mar 2007, [EMAIL PROTECTED] wrote: The issue was actually to do with there being two setter methods on my object - both with the same name but taking parameters of different types - one 'Date' and one 'String'. My local environment was using the correct setter method. The service prov

RE: SQL Server JDBC drivers

2007-03-21 Thread Graeme J Sweeney
On Wed, 21 Mar 2007, Niels Beekman wrote: We use jTDS (http://jtds.sf.net) for several years now, it has excellent performance and any bugs (which are very rare) are dealt with promptly. +1 -- Graeme -

Re: Locale problems?

2007-03-21 Thread Graeme J Sweeney
On Wed, 21 Mar 2007, [EMAIL PROTECTED] wrote: I think the two errors are unconnected. The unparseable 'date' shown is from the dob column not the lastLogin column. I think that is a red herring. I have no idea why 'lastLogin' is causing an issue as well. The value is from the dob column but iB

Re: Locale problems?

2007-03-21 Thread Graeme J Sweeney
On Tue, 20 Mar 2007, [EMAIL PROTECTED] wrote: --- Check the result mapping for the 'lastLogin' property. --- Cause: com.ibatis.common.exception.NestedRuntimeException: Error setting properties of 'BaseObject [107, null, null, null]'. Cause: java.text.ParseException: Unparseable date: "1975-01-1

Re: Locale problems?

2007-03-20 Thread Graeme J Sweeney
On Tue, 20 Mar 2007, [EMAIL PROTECTED] wrote: The database is MySQL - sorry for not mentioning that! I have manually inserted a record into the database and tried the same code. It fails in exactly the same way. From your earlier posts: 1. Local server, local DB works 2. Local server, remo

Re: Postgres and generated keys

2007-03-20 Thread Graeme J Sweeney
On Tue, 20 Mar 2007, Mark Volkmann wrote: Perhaps I'm doing something wrong in my AbatorConfig.xml. Here's the part that pertains to the address table. Is the value for the sqlStatement attribute wrong? Something like . -- Graeme -

Re: Locale problems?

2007-03-20 Thread Graeme J Sweeney
On Tue, 20 Mar 2007, [EMAIL PROTECTED] wrote: The only difference to take into account though is that all the datetime columns are system generated where as the date field that is throwing read errors has orginated from a form field. This field is correctly inserted into the database but then ha

Re: Locale problems?

2007-03-20 Thread Graeme J Sweeney
On Tue, 20 Mar 2007, [EMAIL PROTECTED] wrote: Thanks for the response. I'll have a look at the example you have suggested. I am using a date jdbc type for the date field as I only need dates in the form -MM-dd rather than the extended datetime format. Is the column type DATE or DATETIME ?

Re: Using IBATIS From within Tomcat (& Eclipse)

2007-03-08 Thread Graeme J Sweeney
On Thu, 8 Mar 2007, Gordon Ross wrote: Now this wasn't totally surprised as I wasn't sure about the basic CWD of a tomcat app. In this case (when running under Eclipse) it appears to be my home directory. So I put the sqlmap.xml file there, and IBATIS still complains that it can't find the file.

Re: iBATIS in Indianapolis

2007-03-02 Thread Graeme J Sweeney
On Thu, 1 Mar 2007, Mark Volkmann wrote: If you're interested in learning more about Abator, I have some notes on it at http://www.ociweb.com/mark/Abator.html that might be helpful. Doesn't appear to work, I just get a blank page. -- Graeme -

Re: Problems compiling

2007-01-29 Thread Graeme J Sweeney
On Mon, 29 Jan 2007, Andr? Rodrigues Pena wrote: I'm new to iBatis, this is my first project. I'm trying to use it with a JDBC driver provided by Microsoft to access MS SQL 2005. Every time I try to FYI http://jtds.sourceforge.net/ run it on Eclipse I get the same error message: "Could not f

Re: where with multiple where conditions.. ERROR

2006-12-11 Thread Graeme J Sweeney
On Mon, 11 Dec 2006, Tommy Kristiansen wrote: Caused by: java.lang.ClassNotFoundException: Bean You have to *create* the class Bean. Call it anything you like e.g. com.commfides.beans.PinOrderQueryBean -- Graeme -

Re: where with multiple where conditions.. ERROR

2006-12-11 Thread Graeme J Sweeney
On Mon, 11 Dec 2006, Tommy Kristiansen wrote: PinOrder pinorder = (PinOrder) sqlMap.queryForObject("getLastPinOrder",fnr,partnerCode); The signature for this is queryForObject(String id,Object parameterObject, Object resultObject) You appear to be passing 2 parameters. You need

Re: How to insert a entire table read from access to oracle using ibatis?

2006-12-08 Thread Graeme J Sweeney
On Fri, 8 Dec 2006, puneet arya wrote: you can use directly JDBC to insert data from access to database without using IBATIS For one table you're probably right. I use abator, if I have to do this type of a task. -- Graeme -

Re: cacheModel

2006-11-09 Thread Graeme J Sweeney
On Wed, 8 Nov 2006, Hari... wrote: what exactly cache model is ? The cacheModel wraps/represents a cache implementation. i had gone through the dev guide ,i fell that infornmation is not sufficient. can anyone explain me what exactly happens when we use the cache model . The cache will be

Re: Ibatis not returning any results

2006-11-03 Thread Graeme J Sweeney
On Fri, 3 Nov 2006, Larry Meadors wrote: What is returned by to_char(max(position_as_at))? additionally, what Java type is positionAsAt? I'm guessing it should be a String. columnIndex="4" jdbcType="VARCHAR"/> ? -- Graeme -

RE: Ibatis not returning any results

2006-11-03 Thread Graeme J Sweeney
On Fri, 3 Nov 2006, Rutherford, Matthew [CIB-IT] wrote: The java property is of type int. ie. setFii(2) sets it to an int value 2. In the db it is an oracle number(12). If I do a getItems (select *) type query The list is populated fine. Any ideas? what happens if you hardcode the value o

Re: MySQL query problem

2006-10-20 Thread Graeme J Sweeney
On Fri, 20 Oct 2006, Javier Leyba wrote: I've the following code defined: -- Log show me that parameters arrives to query without problems. If I put those querys in a MySQL it works ok, so. I' ve no idea about the origin of th

Re: closing connections

2006-10-10 Thread Graeme J Sweeney
On Tue, 10 Oct 2006, trevor paterson (RI) wrote: we are developing a webapp on netbeans/tomcat and using ibatis to connect to a remote postgres database during development we are deploying the web app through netbeans - and when we stop the webapp we seem to leave dangling connections which the

RE: schema prefix in abator generated files

2006-10-09 Thread Graeme J Sweeney
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote: I don't see anything called useStatementNamespaces="true" element in the DTD. Could you be more specific See your sqlMapConfig, http://ibatis.apache.org/dtd/sql-map-config-2.dtd. -- Graeme -

Re: schema prefix in abator generated files

2006-10-09 Thread Graeme J Sweeney
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote: If I prefix each if the "id" elments with the namespace type, the problem is fixed Can't abator generated the id elements with the namespace prefix, or is there any setting I'm missing in my properties file Are namespaces enabled in yo

Re: java.sql.BatchUpdateException: ORA-01000: maximum open cursors exceeded- Need your help

2006-08-02 Thread Graeme J Sweeney
On Wed, 2 Aug 2006, [EMAIL PROTECTED] wrote: java.sql.BatchUpdateException: ORA-01000: maximum open cursors exceeded But this is working fine with FireBird and MS-SQL So it's not an iBatis problem then. after exactly 150 records i am getting the error. http://www.cryer.co.uk/brian/oracle

Re: pb with oracle jdbc driver

2006-08-01 Thread Graeme J Sweeney
On Tue, 1 Aug 2006, jeb001 wrote: No it's not a war.. I've my webapps in the context path.. I'm developping. As per Tim Chen, make sure WEB-INF/lib is the only place the jar is present. Restart your servlet container. -- Graeme -

Re: pb with oracle jdbc driver

2006-08-01 Thread Graeme J Sweeney
On Tue, 1 Aug 2006, jeb001 wrote: no one ? Are you deploying your application as a WAR? If you've manually copied it to WEB-INF/lib, did you restart your servlet container? If you've transferred the oracle jar say by ftp then do an md5dum on it and compare with the original. -- Graeme -

Re: statements and result maps in different files?

2006-07-28 Thread Graeme J Sweeney
On Fri, 28 Jul 2006, Stefan Podkowinski wrote: Can anyone give advise how to seperate object mappings from statements in ibatis? We would like to create a file containing a few complex reporting queries with the intention to use it as a common query definition base for several applications. The

Re: How to map Timestamp with time zone column?!

2006-07-18 Thread Graeme J Sweeney
On Tue, 18 Jul 2006, CIJOML wrote: newKontakt.setId_lokace('4'); Detail: Key (lokace_id_lokace)=(52) is not present in table "lokace". Caused by: org.postgresql.util.PSQLException: ERROR: insert or update on table "kontakt" violates foreign key constraint "kontakt_lokace_id_lokace_fkey"

Re: SqlMapDaoTemplate.getSqlMapExecutor ClassCastException

2006-07-17 Thread Graeme J Sweeney
On Mon, 17 Jul 2006, al pivonka wrote: HELP I'm getting a ClassCastException on SqlMapDaoTemplate.getSqlMapExecutor Never used it, can you post your code and the exception trace. -- Graeme -

Re: need infos about ibatis 3rd party tool

2006-07-17 Thread Graeme J Sweeney
On Mon, 17 Jul 2006, hicham abassi wrote: What's the actually best ibatis plugin ? Abator, ? Plugin for what? -- Graeme -

Re: RE : RE : RE : RE : RE : request using beanExample

2006-07-13 Thread Graeme J Sweeney
On Thu, 13 Jul 2006, jeremy jardin wrote: So I want to launch a request with a where clause on "MOBILE" property. When I look on the XML file, I just can't see that : Sould I had the property ?? Pour votre Anglais: add not had From your abator generated classes you should have a UTILISA

Re: using typeHandler tag in sqlMapConfig.xml file

2006-07-11 Thread Graeme J Sweeney
On Tue, 11 Jul 2006, chaithanya ibatis wrote: currently i'm using this which is not supporting typeHandler tag http://www.ibatis.com/dtd/sql-map-config-2.dtd";> It does. Post your sqlMapConfig.xml -- Graeme -

Re: interface property predicaments

2006-07-11 Thread Graeme J Sweeney
On Mon, 10 Jul 2006, Paul Benedict wrote: I get that annoying "cannot find WRITABLE property id in Person" message because it is looks at Article.getPerson() which returns the interface not implementation. Doesn't that mean that Person is not a JavaBean i.e. missing a setId method? -- Gr

Re: insert with id as return value

2006-07-04 Thread Graeme J Sweeney
On Tue, 4 Jul 2006, Thomas Karl Schwaerzler wrote: You don't have to do this link.setId(id); as this call linkDao.insert(link); will return you the id. Check the javadoc of your DAO (or LinkDAOImpl.java). -- Graeme -

Re: error parsing xml files

2006-07-03 Thread Graeme J Sweeney
On Mon, 3 Jul 2006, Thomas Karl Schwaerzler wrote: com.ibatis.common.exception.NestedRuntimeException: Could not find SQL statement to include with refid 'user_ODM_LINK.abatorgenerated_Example_Where_Clause' Is it a namespace issue? here my SqlMapConfigAbator.xml http://www.ibatis.com/d

Re: Re: Unit test problem with sql cache

2006-07-03 Thread Graeme J Sweeney
On Mon, 3 Jul 2006, Anthony Hong wrote: Is this impossible to achieve? If there is no inherent iBatis solution then an alternative is to change your build configuration to pull in the correct config file at run time. -- Graeme -

Re: Abator and XML namespaces

2006-06-29 Thread Graeme J Sweeney
On Thu, 29 Jun 2006, Rob van der Leek wrote: However, this does not solves my "namespace problem". Have you set your config to use namespaces? -- Graeme -

Re: RE : RE : "invalid column type'

2006-06-21 Thread Graeme J Sweeney
On Wed, 21 Jun 2006, jeremy jardin wrote: targetProject="authentification.components.SqlDatas.src" targetProject="authentification/components/SqlDatas/src" -- Graeme -

Re: Enabling Logging

2006-06-11 Thread Graeme J Sweeney
On Sun, 11 Jun 2006, Tarek Nabil wrote: log4j.appender.RollingFile.File=c:/customs.log c:\customs.log ? -- Graeme -

Re: Using non-default timezones

2006-06-05 Thread Graeme J Sweeney
On Mon, 5 Jun 2006, Mayeul MARGUET wrote: Is there an official way to do it, which would save me the hassle of modifying my default timezone or storing my dates and timestamps as text? Create a TimeZone for GMT and use that to create a Calendar instance. That should help with the insertions.

Re: how to turn of logging when ibatis runs the query

2006-05-04 Thread Graeme J Sweeney
On Thu, 4 May 2006, radha rukmani wrote: Is there a way to turn of the result set logging I use log 4j and havent written any logging statement for ibatis queries, it comes by itself What about this in your log4j configuration ? log4j.logger.java.sql.ResultSet=OFF -- Graeme -

[REPOST] sqlMap + multiple deletes: getting the total number of rows deleted

2005-08-24 Thread Graeme J Sweeney
[Looks like my first post got lost when the list went down :-/] Hi, I'm a newbie to iBatis and as part of some unit-testing I need to confirm that the correct number of rows are deleted when removing some records. If do delete from X where id=#value#; delete from Y where id=#value#; I get