RE: Could not find resource error

2005-07-01 Thread Niels Beekman
Hi, Seems to me that you are using two config-files or something like that, you say you are including com/*ashish*/data/SqlMapConfig.properties, but the debug-output displays com/*pfizer/maps*/data/SqlMapConfig.properties... Niels -Original Message- From: Ashish Kulkarni [mailto:[EMAIL

RE: Auto-generated keys using Sybase

2005-07-11 Thread Niels Beekman
You should escape the $, when using $$ iBATIS should skip it. -Original Message- From: German Gonzalez [mailto:[EMAIL PROTECTED] Sent: maandag 11 juli 2005 16:25 To: user-java@ibatis.apache.org Subject: Re: Auto-generated keys using Sybase I have a similar problem, but with firebird db.

RE: Getting UncategorizedSQLException

2005-07-13 Thread Niels Beekman
Title: Getting UncategorizedSQLException True, but the UncategorizedSQLException is not thrown by iBATIS, I believe it is from Spring or something like that, so it should be related to the SQL itself. Could you please dump the complete stacktrace instead of just saying some kind of

RE: Temporary table causing problems?

2005-08-02 Thread Niels Beekman
Did you try to escape the # using ##? Niels -Original Message- From: Bing Qiao [mailto:[EMAIL PROTECTED] Sent: dinsdag 2 augustus 2005 11:26 To: user-java@ibatis.apache.org Subject: Temporary table causing problems? This problem seems to only exist after 2.0.9b.550 I use queryForList

RE: SQL logging

2005-08-03 Thread Niels Beekman
IFAIK this depencency is removed in 2.1.5. From the docs: * If you want to use advanced logging you'll need one or both of the following: Commons Logging(http://jakarta.apache.org/commons/) Log4J 1.2.8(http://logging.apache.org/log4j/docs/) iBATIS selects the

RE: iterate over 2 collections

2005-08-03 Thread Niels Beekman
Wat version are you using? Your error looks much like http://issues.apache.org/jira/browse/IBATIS-148 which was fixed in 2.1.5 Niels -Original Message- From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED] Sent: woensdag 3 augustus 2005 14:21 To: user-java@ibatis.apache.org Subject: Re:

RE: iterate over 2 collections

2005-08-03 Thread Niels Beekman
: woensdag 3 augustus 2005 14:40 To: user-java@ibatis.apache.org Subject: Re: iterate over 2 collections On Wed, Aug 03, 2005 at 02:23:34PM +0200, Niels Beekman wrote: Wat version are you using? Your error looks much like http://issues.apache.org/jira/browse/IBATIS-148 which was fixed in 2.1.5

RE: Lazy loading

2005-08-04 Thread Niels Beekman
Hi, Are you using CGLIB? If not, iBATIS uses the Java Proxy/Invocationhandler, which only handles interfaces. Somebody please correct me if I'm wrong. If you look into EnhancedLazyResultLoader you'll see that it does not only wrap instances of Collection. Hope this clarifies something, Niels

RE: More complex example of a queryForMap call

2005-08-04 Thread Niels Beekman
I would say: select id=studentStatement resultClass=Student SELECT id, fname, lname FROM students /select queryForMap(studentStatement, null, id); this would result in for example: 1 - Student1 2 - Student2 Or is this too simpleminded? Niels -Original Message- From: Nathan Maves

RE: More complex example of a queryForMap call

2005-08-04 Thread Niels Beekman
it with your below example would queryForMap(studentStatement, null, id, fname); return a Map of 1 - Niels 2 - Nathan On Aug 4, 2005, at 12:29 PM, Niels Beekman wrote: I would say: select id=studentStatement resultClass=Student SELECT id, fname, lname FROM students /select queryForMap

RE: Executing a Stored Procedure returning rows from a Temporary table

2005-08-08 Thread Niels Beekman
You may want to try jTDS (http://jtds.sf.net), it performs much better than the MS-driver and contains less bugs, didn't try the new SP4-version of the MS-driver though and I do not have experience with stored procedures. Niels -Original Message- From: Priyesh Mashelkar [mailto:[EMAIL

RE: iterate

2005-08-08 Thread Niels Beekman
@ibatis.apache.org Subject: Re: iterate On Mon, Aug 08, 2005 at 04:29:42PM +0200, Niels Beekman wrote: Something like this: class MyBean { public List getList() { return mylinkedList; } } iterate property=list open=( close=) #[]# /iterate When passing the list directly as argument

RE: iterate

2005-08-09 Thread Niels Beekman
@ibatis.apache.org Subject: Re: iterate #[]# is not valid ibatis token, there can't be property of empty name and when you address bean in a global manner (whole bean) you write value Michal Malecki On Tue, Aug 09, 2005 at 02:27:38PM +0200, Niels Beekman wrote: You defined a parameter-class list

RE: Logging?

2005-08-10 Thread Niels Beekman
@ibatis.apache.org Subject: Re: Logging? On Wed, Aug 10, 2005 at 11:23:43AM +0200, Niels Beekman wrote: Almost, in 2.1.5 the dependency on commons-logging has been removed, so just addding the log4j-libraries should do the trick. It is just a wish. Right now it won't work w/o the commons-logging

RE: Initial Size of Connection Pool

2005-08-12 Thread Niels Beekman
iBATIS has a legacy implementation for DBCP, this is the implementation described in the docs, prefixed with Pool, it also has a new implementation, you just specify the properties as mentioned in the documentation you found on apache.org. Legacy: dataSource type=DBCP property

RE: ThrottledPool handing

2005-08-15 Thread Niels Beekman
Adam, Can you simulate what happens when t.execute(this.sqlMapClient) throws an exception, so before you explicitly close the session? Niels From: Clinton Begin [mailto:[EMAIL PROTECTED] Sent: maandag 15 augustus 2005 19:19 To: user-java@ibatis.apache.org Subject:

RE: ArrayDescriptor issue

2005-08-16 Thread Niels Beekman
Could you paste the JDBC-code, otherwise we are not getting any further :) Niels -Original Message- From: Rao, Satish [mailto:[EMAIL PROTECTED] Sent: dinsdag 16 augustus 2005 16:47 To: user-java@ibatis.apache.org Subject: RE: ArrayDescriptor issue I tried it again. It works with

RE: Transaction question

2005-08-17 Thread Niels Beekman
Hi, I'm facing this exact same problem however in a somewhat different context, see the following archived thread: http://www.mail-archive.com/ibatis-user-java@incubator.apache.org/msg025 80.html http://www.mail-archive.com/user-java@ibatis.apache.org/msg00036.html I recently restarted my

RE: Transaction question

2005-08-20 Thread Niels Beekman
with this approach. Thanks, Brian Barnett -Original Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 3:00 PM To: user-java@ibatis.apache.org Subject: RE: Transaction question Hi, I'm facing this exact same problem however in a somewhat

RE: IsNotEqual

2005-08-30 Thread Niels Beekman
You need to choose between compareProperty or compareValue... What you are trying to do requires the following: IsNotEqual prepend= OR property=test compareValue=-1/ The attribute compareProperty would be used to compare against another property... Niels -Original Message- From:

RE: iBatis logging

2005-08-31 Thread Niels Beekman
Hi, The java.sql.*-outputs are from iBATIS too, java.sql does not do any debugging on its own What logging did you expect? Niels From: Paul Glezen [mailto:[EMAIL PROTECTED] Sent: woensdag 31 augustus 2005 18:16 To: user-java@ibatis.apache.org Subject: iBatis logging

RE: Iterate over a List of complax objects

2005-09-05 Thread Niels Beekman
Hi, You should definitely try things out, you'll be surprised how many constructs are supported in iBATIS :) iterate prepend=AND property=userList open=( close=) conjunction=OR telephonenumber = #userList[].number# AND name = #userList[].name# /iterate Or maybe even:

RE: Mapping across namespaces

2005-09-07 Thread Niels Beekman
Title: Mapping across namespaces Are you including CategoryValue.xml before User.xml? iBATIS currently has a loading-order dependency, so all statements referenced should already be loaded Niels From: Patrick Lightbody [mailto:[EMAIL PROTECTED] Sent: woensdag 7 september

RE: Mapping across namespaces

2005-09-07 Thread Niels Beekman
] www.jivesoftware.com 317 SW Alder, Ste 500 Portland, OR 97204 ph (503) 295-6552 fx (503) 961-1047 From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 10:23 AM To: user-java@ibatis.apache.org Subject: RE: Mapping across namespaces Are you including

RE: Postgres - inserting null causes error - Unknown Types value

2005-09-13 Thread Niels Beekman
I do not know PostgreSql very well, but could it be that you have to explicitly specify the JDBC-type, as in Oracle? Niels From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] Sent: dinsdag 13 september 2005 15:15 To: user-java@ibatis.apache.org Subject: Postgres - inserting null

RE: Broken Wiki FAQ Links Update

2005-09-14 Thread Niels Beekman
Any new information about this? Would be nice if we can redirect users to the FAQ again J From: Clinton Begin [mailto:[EMAIL PROTECTED] Sent: woensdag 31 augustus 2005 19:00 To: user-java@ibatis.apache.org; user-cs@ibatis.apache.org; dev@ibatis.apache.org Cc: Confluence Support

RE: example for mapping CHAR(n) to String

2005-09-17 Thread Niels Beekman
Does the query work with plain JDBC? In MS SQL TABLE is a reserved keyword and should be escaped using [TABLE]. Niels -Original Message- From: Joachim Hoffmann [mailto:[EMAIL PROTECTED] Sent: woensdag 14 september 2005 19:10 To: user-java@ibatis.apache.org Subject: example for mapping

RE: Can't accurately evaluate null when using proxies?

2005-09-21 Thread Niels Beekman
Hi, I looked at the source code, and I believe you are right, iBATIS performs null-checking, but only when invoking methods; i.e. entity.getFoo().getX(), when the proxied (lazily loaded) result is null, null is returned as method-result. The proxy, however, is created immediately. The reason for

RE: Multiple Databases - Multiple Context

2005-10-05 Thread Niels Beekman
Hi, It is definitely there: !ELEMENT context (transactionManager, dao*)+ !ATTLIST context id CDATA #IMPLIED Niels BTW You should use the DTD located at apache, http://ibatis.apache.org/dtd/dao-2.dtd From: Agilan Palani [mailto:[EMAIL PROTECTED] Sent: woensdag 5

RE: setQueryTimeout

2005-10-05 Thread Niels Beekman
No, but there is already a JIRA-issue, you could vote for it: http://issues.apache.org/jira/browse/IBATIS-22 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: woensdag 5 oktober 2005 20:53 To: user-java@ibatis.apache.org Subject: setQueryTimeout Is there a way to

RE: Handle resultset manually

2005-10-13 Thread Niels Beekman
Hi, You could use the TypeHandlerCallback-interface. sqlmap: resultMap id=myResultMap class=myClass result column=myColumn property=myProperty typeHandler=MyHandlerCallback/ /resultMap MyHandlerCallback.java: class MyHandlerCallback implements TypeHandlerCallback { ... public Object

RE: Inserting null into SQLServer DATETIME field

2005-10-19 Thread Niels Beekman
Title: Inserting null into SQLServer DATETIME field Hi, java.sql.Types.DATETIME does not exist in Java 1.4, we use TIMESTAMP, see the API of your Java-version Niels From: Matthew Hegarty [mailto:[EMAIL PROTECTED] Sent: woensdag 19 oktober 2005 11:01 To:

RE: How to use tomcat's naming-factory-dbcp.jar

2005-10-21 Thread Niels Beekman
configure ibatis to use naming-factory-dbcp.jar that is always there. Zsolt -Original Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 9:16 AM To: user-java@ibatis.apache.org Subject: RE: How to use tomcat's naming-factory-dbcp.jar You should

RE: iBaits ignores my TyeHandler

2005-10-21 Thread Niels Beekman
You only defined the typehandler for resultmaps (reads), to make it also work with updates and inserts, you need to: - define a parameterMap with the typehandler - declare typehandler globally in the config using the typehandler-tag When you choose the latter option, you can remove the

RE: How to use tomcat's naming-factory-dbcp.jar

2005-10-21 Thread Niels Beekman
: vrijdag 21 oktober 2005 12:48 To: user-java@ibatis.apache.org Subject: RE: How to use tomcat's naming-factory-dbcp.jar Does it mean that I cannot use directly the tomcat dbcp library? zsolt -Original Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 10

RE: error inserting null values to database

2005-10-31 Thread Niels Beekman
http://opensource2.atlassian.com/confluence/oss/display/IBATIS/What+caus es+an+Invalid+column+type+error+with+Oracle -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: maandag 31 oktober 2005 17:17 To: user-java@ibatis.apache.org Subject: error inserting null

RE: Problems applying parameter map property

2005-11-01 Thread Niels Beekman
Just a guess, can you try to remove the CDATA-tags? There have been a number of people that reported similar issues. Niels -Original Message- From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] Sent: woensdag 2 november 2005 2:01 To: user-java@ibatis.apache.org Subject:

RE: Feature of resultset.getGeneratedKeys

2005-11-01 Thread Niels Beekman
This feature has been available as of JDBC 3.0 (so actually JDK1.4), but is not available in iBATIS. There is already an issue in JIRA for it, so you could vote for it to increase the chance it gets implemented (I believe): http://issues.apache.org/jira/browse/IBATIS-142 Niels

RE: Problems applying parameter map property

2005-11-02 Thread Niels Beekman
decided to stick to what works ok: inline parameters. After finishing this project i'll try to look into this issue and maybe write a Wiki entry about it with my findings. Cheers, Daniel Silva On 11/2/05, Niels Beekman [EMAIL PROTECTED] wrote: Just a guess, can you try to remove the CDATA-tags

RE: error while using a CTH

2005-11-02 Thread Niels Beekman
Could you post your complete resultMap? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: maandag 31 oktober 2005 20:41 To: user-java@ibatis.apache.org Subject: error while using a CTH Here is the error. com.ibatis.dao.client.DaoException: Error executing

RE: Does iterate tag conjunction property support dynamic?

2005-11-03 Thread Niels Beekman
No, that doesn't work, I tried that too. You could create a JIRA-issue for it... Niels From: 张鑫宇 [mailto:[EMAIL PROTECTED] Sent: donderdag 3 november 2005 14:52 To: user-java@ibatis.apache.org Subject: Does iterate tag conjunction property support

RE: paginated list

2005-11-03 Thread Niels Beekman
It doesn't, it just skips results in the ResultSet I believe. If you want to get optimal performance, roll your own implementation of paging and use the LIMIT/OFFSET statements, however, it won't be database-independent. Niels -Original Message- From: Eugeny N Dzhurinsky [mailto:[EMAIL

RE: Use isNull (in sqlMap) with a Long value?

2005-11-04 Thread Niels Beekman
I think you can leave out the property-attribute. Niels -Original Message- From: Steven Pannell [mailto:[EMAIL PROTECTED] Sent: vrijdag 4 november 2005 17:05 To: user-java@ibatis.apache.org Subject: Use isNull (in sqlMap) with a Long value? Hi, I want to make use of the isNull option

RE: confused about storing image data in my database

2005-11-07 Thread Niels Beekman
I checked the postgres driver (I did not find a useful map on the website), the methods getBytes() and setBytes() are ported directly to the native bytea-datatype. I think it works out-of-the-box :) Niels -Original Message- From: Alan Chandler [mailto:[EMAIL PROTECTED] Sent: maandag 7

RE: dynamic query to pick up a sequence

2005-11-08 Thread Niels Beekman
If sequenceName is a property available to iBATIS at runtime, you can use: SELECT $sequenceName$.nextval FROM dual iBATIS replaces the $'s with the value of the property, the #'s are for setting parameters in a prepared statement. Hope this helps, Niels -Original Message- From: Tom

Make type aliases namespace-aware

2005-11-11 Thread Niels Beekman
Hi, Type aliases in iBATIS can be specified in two places: the main config and in SQLMaps. I looked at the source of iBATIS and saw that the types aliases are just put in one big Map. I would like to see the behaviour of type aliases: - aliases defined in the main config are global (just as

RE: Dynamic statement

2005-11-14 Thread Niels Beekman
You should use removeFirstPrepend=true on the dynamic-tag, this causes iBATIS to skip the first prepend encountered. Hope this helps, Niels From: John Chien [mailto:[EMAIL PROTECTED] Sent: maandag 14 november 2005 18:30 To: user-java@ibatis.apache.org

RE: Inserting Default values if object member is null

2005-11-14 Thread Niels Beekman
You should use the DTD (http://ibatis.apache.org/dtd/sql-map-2.dtd). The property is actually nullValue, in your example: When iBATIS finds -999 in the Dummy.id-property it will insert null into the database, when null is found in the database, iBATIS will put -999 in the

RE: Inserting Default values if object member is null

2005-11-14 Thread Niels Beekman
I don't want to insert null in the database, i want to insert -1 because the database column is set to not null. Maybe Ibatis does not support this. From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Monday, November 14, 2005 2:28 PM To: user-java@ibatis.apache.org Subject: RE

RE: New doctype won't work

2005-11-18 Thread Niels Beekman
2005 14:34 To: user-java@ibatis.apache.org Subject: Re: New doctype won't work Thanks you for the quick answer. Does this mean that I will have to change it again with a future revision of iBatis ? Or will the //iBatis.com be recognize too in future releases ? Niels Beekman a écrit : iBATIS uses

RE: First sqlMap causing Parse Errors Please Assist

2005-11-22 Thread Niels Beekman
You cannot use the attribute id on the sqlMap-tag (hence the parser complains that you are using an attribute that is not defined in the DTD for that tag): sqlMap id=LabelValueSQL should just be: sqlMap Be sure to use a DTD-validating XML-editor, these errors are much harder to debug without

RE: Cache entire table for use in an application

2005-11-22 Thread Niels Beekman
Nope, that's why database servers got invented :) Of course you can cache the objects, but that was probably not your question. The MS SQLServer documentation contains lots of information about how it uses memory for caching, maybe you should take a look at it. Niels

RE: Multiple deletes? [signed]

2005-12-08 Thread Niels Beekman
Larry means iterating your list, that would still result in one query, but one that works and still protects against SQL injection. Niels -Original Message- From: Michael Laccetti [c] [mailto:[EMAIL PROTECTED] Sent: donderdag 8 december 2005 23:12 To: user-java@ibatis.apache.org

RE: How to not verbosely declare resultmaps?

2005-12-20 Thread Niels Beekman
$-s are for SQL injection werent they J !-s can be used as operators (SELECT * FROM bla WHERE foo != bar) -s can be used to delimit strings, so this would require old uses of to be escaped (am I right?) |-s can be used as string concatenator So the only viable option left is @ I

RE: Struggling to load a complex property from a secondary table (a 1:N problem)

2006-01-06 Thread Niels Beekman
Hi, You should change the resultmap, you have to specify the columnName of the value you would like to pass to findPermissionByUserId: resultMap id=UserResultMap class=User result property=userId column=UserId/ result property=permissions column=UserId

RE: parameter map

2006-01-09 Thread Niels Beekman
Try setting resultClass to String, you told iBATIS already that you want a List by using queryForList(). From: radha rukmani [mailto:[EMAIL PROTECTED] Sent: maandag 9 januari 2006 16:35 To: user-java@ibatis.apache.org Subject: parameter map Hi I am trying to

RE: boolean JavaType and mapping

2006-01-20 Thread Niels Beekman
You could use a typehandler to do that: http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+ use+a+Custom+Type+Handler+with+complex+property+or+Type+Safe+Enumeration Niels -Original Message- From: Olivier Antoine [mailto:[EMAIL PROTECTED] Sent: donderdag 19 januari

RE: junit test

2006-01-24 Thread Niels Beekman
IBatis indeed works very well with itself :) I think you are wrong on the interpretation of the exception, namespace is not declared for element sqlMap actually means you have used the attribute namespace, but it is not declared in (allowed by) the DTD. Niels -Original Message- From:

RE: Getting object access to resultMap definitions

2006-01-28 Thread Niels Beekman
This is currently not possible, you can vote for it at: http://issues.apache.org/jira/browse/IBATIS-94 Niels From: Eric Blue [mailto:[EMAIL PROTECTED] Sent: zaterdag 28 januari 2006 3:12 To: user-java@ibatis.apache.org Subject: Getting object access to

RE: Dynamic SQL

2006-01-31 Thread Niels Beekman
You must either use the iterate-tag (recommended, see previous posts about this) or use $-syntax: IN ($provinces$). Related Wiki for $-syntax (linewrap): http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+pass+in+a+dynamic+table+name+-+or+other+uncommon+parameters Niels

RE: calling stored functions

2006-02-01 Thread Niels Beekman
Hi, The usage of ? is AFAIK not related to the procedure-tag, but just general iBATIS syntax, you can use two ways of passing parameters to queries: - use the parameterMap-attribute and ?'s, the order in the parametermap is the order iBATIS uses to populate the ?'s - use the

RE: Insert returned object is NULL

2006-02-01 Thread Niels Beekman
Just in case: did you use the selectKey-element within your insert statement? Niels From: Zhongmin Chen [mailto:[EMAIL PROTECTED] Sent: woensdag 1 februari 2006 22:03 To: user-java@ibatis.apache.org Subject: Insert returned object is NULL Hi, I am using

RE: about the iterate usage

2006-02-08 Thread Niels Beekman
Hi, I'm not sure I understand your question, but the iterate-tag supports (amongst others) all Collection implementations (so ArrayList is supported) and arrays. You do not have to change anything in your first query to make it work. The []-syntax is there to let iBATIS know it should retrieve

RE: Adding sqlmap at runtime

2006-02-23 Thread Niels Beekman
Hi, This has been discussed several times now on this mailing list, the short answer is no, the longer answer: it is already in JIRA, find the issue and vote for it, or even better, contribute it yourself. Grtz, Niels -Original Message- From: Richard Lin [mailto:[EMAIL PROTECTED]

RE: HashMap's List entry for iterate

2006-03-08 Thread Niels Beekman
You need to tell the iterate-tag which property to iterate: iterate property=accountIdList open=ACCOUNTS.ID IN ( close=) conjunction=, #accountIdList[]# /iterate Niels From: Amad Fida [mailto:[EMAIL PROTECTED] Sent: woensdag 8 maart 2006 12:35

RE: manage transaction

2006-03-08 Thread Niels Beekman
Hi, You provided the following properties in a previous mail: property name=SetAutoCommitAllowed value=false/ property name=DefaultAutoCommit value=false/ Change SetAutoCommitAllowed to true and it will work. Niels -Original Message- From: Cesar Villar [mailto:[EMAIL PROTECTED]

RE: DTD URL unavailable

2006-03-15 Thread Niels Beekman
Which version are you using? The latest iBATIS version resolve all DTD's from the jar, so you do not have to access the internet. Niels -Original Message- From: Gordon Shankman [mailto:[EMAIL PROTECTED] Sent: woensdag 15 maart 2006 12:25 To: user-java@ibatis.apache.org Subject: DTD URL

RE: Complex property question

2006-03-20 Thread Niels Beekman
... FROM dbo.PURCHASE_HEADER t where order_no = #value# /select -Original Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 2:02 PM To: user-java@ibatis.apache.org Subject: RE: Complex property question Hi Niels, Can we see the definition

RE: Complex property question

2006-03-21 Thread Niels Beekman
-class, introduce a new select. Niels BTW 'single column could be the source for several properties' should work just fine... -Original Message- From: Voorhoeve, Niels {PBG} [mailto:[EMAIL PROTECTED] Sent: dinsdag 21 maart 2006 17:56 To: Niels Beekman Subject: RE: Complex property question

RE: Problem with dynamic query.

2006-03-21 Thread Niels Beekman
You cannot use an iterated property in the decision tags. I believe there is a JIRA issue for this. isNotNull property=contentBeanTrees[].detailsTable -- not allowed Niels -Original Message- From: Daniel Pitts [mailto:[EMAIL PROTECTED] Sent: woensdag 22 maart 2006 2:44 To:

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 piece of

RE: sql server 2k parameterized queries

2006-03-23 Thread Niels Beekman
Yes, you cannot parameterize clauses in SQL. Use the $-syntax: AND $shows$ Niels -Original Message- From: Bob [mailto:[EMAIL PROTECTED] Sent: donderdag 23 maart 2006 9:38 To: user-java@ibatis.apache.org; [EMAIL PROTECTED] Subject: Re: sql server 2k parameterized queries On 23/03/06,

RE: How to convert BLOB/CLOB to String.

2006-03-29 Thread Niels Beekman
You should really take a look at the docs, its all there Niels From: Zsolt [mailto:[EMAIL PROTECTED] Sent: donderdag 30 maart 2006 8:14 To: user-java@ibatis.apache.org Subject: RE: How to convert BLOB/CLOB to String. I dont want to convert all BLOBs to String only for

RE: Need Help with JNDI Connection

2006-04-17 Thread Niels Beekman
Title: Need Help with JNDI Connection Should be: name=cams should be: name=DataSource Niels From: Ali, Mohammed (Liquidity Risk Technology) [mailto:[EMAIL PROTECTED] Sent: maandag 17 april 2006 18:07 To: user-java@ibatis.apache.org Subject: Need Help with JNDI Connection

RE: about dao implementation

2006-05-01 Thread Niels Beekman
You are probably using getDao(abc.dao.sqlmap.SqlMapDao.class) while you should use getDao(com.abc.dao.ContentOrderDao)... Niels -Original Message- From: Hendry [mailto:[EMAIL PROTECTED] Sent: maandag 1 mei 2006 11:24 To: user-java@ibatis.apache.org Subject: about dao implementation Hi

RE: boolean type handler

2006-05-03 Thread Niels Beekman
PM 5/3/2006, Niels Beekman wrote: Hi, Could you post the actual typehandler code and the piece of SQLMap where you use it? -Original Message- From: Paul Allen [ mailto:[EMAIL PROTECTED]] Sent: woensdag 3 mei 2006 18:32 To: user-java@ibatis.apache.org Subject: boolean type handler

RE: queryForMap returning zero results

2006-05-09 Thread Niels Beekman
Thats very strange, since queryForMap() uses queryForList() internally. Is there a proper getter in class com.mycompany.ecommerce.ProductCategory for the productCategoryId property? Niels From: Firas A. [mailto:[EMAIL PROTECTED] Sent: dinsdag 9 mei 2006 20:05 To:

RE: queryForMap returning zero results

2006-05-10 Thread Niels Beekman
productCategoryId) in ProductCategory class. Butwhy queryForMap returns only the last row from the resultset? Thanks again! /Firas From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: den 9 maj 2006 20:28 To: user-java@ibatis.apache.org Subject: RE: queryForMap

RE: Problem with using generic and specific custom TypeHandlers

2006-05-15 Thread Niels Beekman
Are you using the DTD for your sqlmap configfile? There is no such element typeHandlers... Niels -Original Message- From: Tracey Annison [mailto:[EMAIL PROTECTED] Sent: maandag 15 mei 2006 9:20 To: user-java@ibatis.apache.org Subject: RE: Problem with using generic and specific custom

RE: update person doesn't work?

2006-05-15 Thread Niels Beekman
Of course, you do nothing with the newAdministrator variable. You are just restoring the data that already exists. You should update using something like this: Administrator administrator = new Administrator(); Administrator.setId(2); administrator.setJmeno(Ivan);

RE: like and '%'

2006-05-17 Thread Niels Beekman
http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+u se+LIKE+in+my+queries -Original Message- From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED] Sent: woensdag 17 mei 2006 11:52 To: user-java@ibatis.apache.org Subject: like and '%' Is it possible to pass some

New iBATIS article

2006-05-17 Thread Niels Beekman
Hi, I dont know if the article is written by one of the list regulars, but I just added a link to the Wiki. Didnt read it yet, but at first glance, it looked ok. http://www.devx.com/Java/Article/31481 Niels

RE: XML Parsing error when iBATIS tries to parse the DTD's

2006-05-18 Thread Niels Beekman
Hi, Maybe http://forum.java.sun.com/thread.jspa?threadID=567285tstart=180? I think it definitely has to do with the config, as the stacktrace lists SqlMapConfigParser.parse(). Did you put the config files in the right place? Niels -Original Message- From: Eric Bauld [mailto:[EMAIL

RE: I have a TypeHandler that converts Y/N to boolean, but sometimes Y/N might be null...

2006-05-18 Thread Niels Beekman
I think your typehandler.valueOf() implementation is incorrect. The string passed to it is the string you specified in the attribute nullValue. You should do something like: public Object valueOf(String s) { return Y.equals(s); } Niels -Original Message- From: Rick Reumann

RE: resultmaps

2006-05-18 Thread Niels Beekman
I think you can use resultmap extension, first define a resultmap for the 3 properties, then create a new one that extends it with the other 17 fields. HTH, Niels From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: donderdag 18 mei 2006 14:26 To:

RE: Transaction Ibati MySql don't work

2006-05-23 Thread Niels Beekman
You specified SetAutoCommitAllowed=false, that instructs iBATIS to leave the default autocommit setting (true) in place, which causes automatic commits, unless an SQLException occurs when executing a statement. Changing it to true will cause iBATIS to use the DefaultAutoCommit setting. Niels

RE: Not very useful error message

2006-05-24 Thread Niels Beekman
It would indeed be nice if iBATIS told you the file to look in, but this is just an XML validation error and should be easy to spot if you use a decent editor with DTD-validation. Niels -Original Message- From: rs [mailto:[EMAIL PROTECTED] Sent: woensdag 24 mei 2006 19:21 To:

RE: InstantiationException on my OrderIbatisDaowhen instantiating ,please help

2006-05-30 Thread Niels Beekman
Your constructor is package-level accessible, change it to public: public class OrderIbatisDao extends SqlMapDaoTemplate implements IOrderDao{ _public_ OrderIbatisDao(DaoManager daoManager){ super(daoManager); } } -Original Message- From: levan Dvalishvili

RE: about sqlserver2000 text and ntext field

2006-06-14 Thread Niels Beekman
Maybe you can fiddle with the order of the properties, see http://support.microsoft.com/kb/824106. Niels From: RZG [mailto:[EMAIL PROTECTED] Sent: woensdag 14 juni 2006 16:15 To: user-java@ibatis.apache.org Subject: about sqlserver2000 text and ntext field hi all,

RE: Ibatis DAO XML problem

2006-06-19 Thread Niels Beekman
I believe the connection refused is actually the result of the wrong DOCTYPE declaration, the DTD cannot be resolved. Niels From: Jeff Butler [mailto:[EMAIL PROTECTED] Sent: maandag 19 juni 2006 16:25 To: user-java@ibatis.apache.org Subject: Re: Ibatis DAO XML problem

RE: Ibatis DAO XML problem

2006-06-19 Thread Niels Beekman
This information is closer to the one I get from google about this problem. How can I solve this? Also, I've already fixed the other observations from Jeff. Thanks, CMS -Mensagem original- De: Niels Beekman [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 19 de junho de 2006

RE: Return result as Map

2006-06-21 Thread Niels Beekman
That should work, yes. Do you get any exceptions? I believe resultClass=java.util.Map should be changed to a concrete Map-implementation, for example resultClass=java.util.HashMap. Niels -Original Message- From: jaybytez [mailto:[EMAIL PROTECTED] Sent: woensdag 21 juni 2006 17:12 To:

RE: Return result as Map

2006-06-21 Thread Niels Beekman
Do you get any results if you just print the results of queryForList()? I just tried something like your example and it worked perfectly well, however, I did find that when you specify an incorrect property, iBATIS does _not_ complain and just returns null, that sounds like a bug. Niels

RE: Error using caches (There is no statement named...)

2006-06-27 Thread Niels Beekman
That should really work out, namespaces are not automatically preprended to the statement names (they should be IMHO). Can you give us a stacktrace? Niels -Original Message- From: Serafín Orillán Chaparro [mailto:[EMAIL PROTECTED] Sent: dinsdag 27 juni 2006 11:25 To:

RE: Error using caches (There is no statement named...)

2006-06-27 Thread Niels Beekman
Does the modificacion exist somewhere in your sqlmap-file? You excluded some parts by replacing it with ..., so I cannot verify that. Second, the commented select uses a resultClass while the uncommented select uses a resultMap, but I don't think that matters in this case. Niels -Original

RE: Error using caches (There is no statement named...)

2006-06-27 Thread Niels Beekman
So when you use: cacheModel id=cacheConsulta type=LRU flushInterval minutes=30/ flushOnExecute statement=operadores.alta/ flushOnExecute statement=operadores.baja/ flushOnExecute statement=operadores.modificacion/ property name=size value=100 / /cacheModel it fails in exactly

RE: flexible queries?

2006-06-28 Thread Niels Beekman
Yes, that should work out just fine. See the Developer Guide for some examples... -Original Message- From: Vadim Grinshpun [mailto:[EMAIL PROTECTED] Sent: woensdag 28 juni 2006 20:58 To: user-java@ibatis.apache.org Subject: flexible queries? Hi everyone, Suppose I have a query where I

RE: flexible queries?

2006-06-28 Thread Niels Beekman
you take another look at it, please, or explain in more detail? Thanks! -Vadim Niels Beekman wrote: Yes, that should work out just fine. See the Developer Guide for some examples... -Original Message- From: Vadim Grinshpun [mailto:[EMAIL PROTECTED] Sent: woensdag 28 juni 2006 20:58

RE: error parsing xml files

2006-07-03 Thread Niels Beekman
Look more closely to the example Jeff posted, the DAO manager links a DAO-interface to a concrete implementation (see interface and implementation attributes in the DAO config). Something like: OdmLinkDAO linkDao = (OdmLinkDAO)daoManager.getDao(OdmLinkDAO.class); Niels -Original

RE: problem with '$' in package name

2006-07-05 Thread Niels Beekman
As for the first problem: http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+POUND+or+DOLLAR+symbols+in+my+queries Second one I don't know. Niels From: vishakha sawant [mailto:[EMAIL PROTECTED] Sent: woensdag 5 juli 2006 10:43

  1   2   3   >