RE: 2.3.4.726 and XmlConverter

2008-10-16 Thread Niels Beekman
You could easily do this with properties, unless you are connecting to databases on the fly. Search the archives for some examples of this. We use this for purposes similar like yours. Niels From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Friday, October

RE: 2.3.4.726 and XmlConverter

2008-10-16 Thread Zsolt Koppany
I'm not sure whether my problem is clear. Please check the code below (just an example). The expression ${INT_NULL_FIELD_VALUE} has different value on different database thus during the xml file is read we transfer the expression into a database dependent string. I understand that we could do t

Re: 2.3.4.726 and XmlConverter

2008-10-16 Thread Clinton Begin
I don't think Zsolt is talking about the XML results/parameters support in iBATIS. XMLConverter was a class used to literally translate iBATIS 1.x mapping files into iBATIS 2.x mapping files using XSLT. It allowed either runtime conversion or batch conversion. Zsolt could use the old version to d

Re: 2.3.4.726 and XmlConverter

2008-10-16 Thread Christopher . Mathrusse
As a suggestion Zsolt, iBatis does OR mapping extremely well. What you are looking for is something that will map Objects into XML extremely well. Why not take a look at XStream by thoughtworks. I'm using their library for several projects pertaining to Object -> XML and it handles them excepti

Re: 2.3.4.726 and XmlConverter

2008-10-16 Thread Clinton Begin
Zsolt, This feature is really old and was only there to support 1.x clients during the transition to 2.x. If you're still have 1.x maps, it might be a good time to move them. Otherwise, consider it a deprecated feature. Thus, the long-term solution is for you to either adopt the code as your ow

RE: 2.3.4.726 and XmlConverter

2008-10-16 Thread Zsolt Koppany
Larry, are there better options that will work long term? What is the recommended way today? Zsolt > -Original Message- > From: Larry Meadors [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2008 3:55 PM > To: user-java@ibatis.apache.org > Subject: Re: 2.3.4.726 and XmlConverter

Re: 2.3.4.726 and XmlConverter

2008-10-16 Thread Clinton Begin
I believe those converters were pretty isolated. So it would hopefully be easy to extract them and run them in their own JAR or as part of your own source code. Clinton On Thu, Oct 16, 2008 at 7:54 AM, Larry Meadors <[EMAIL PROTECTED]>wrote: > Two options: > > - stick with the older version of

Re: Hooking into cache flushes?

2008-10-16 Thread Ian Zabel
Kai, You can implement a CacheEntryEventListener (from com.opensymphony.oscache.base.events in OSCache), and register it as a listener in your oscache.properties. Here's the javadoc: http://www.opensymphony.com/oscache/api/com/opensymphony/oscache/base/events/CacheEntryEventListener.html Ian. O

Re: 2.3.4.726 and XmlConverter

2008-10-16 Thread Larry Meadors
Two options: - stick with the older version of ibatis that has all the parts you need - extract the parts you need from the older version of ibatis and use them alongside the new release Larry

Hooking into cache flushes?

2008-10-16 Thread Kai Kousa
Hi! Is it currently possible to hook into cache events like flushing, etc.? I would like to execute certain actions each time specific cache is flushed. Can this be done with the current API? Or should I try to develop my own component and then hack it to iBatis(if so, where to begin)? Than

Oracle10g date or timestamp question

2008-10-16 Thread liny
Hi, I have a table which has a receive_dttm column in DATE type. When using Oracle 8i, iBatis can get SQL result. But after upgrading to Oracle10g, the same SQL command can't get result and no exception thrown. Below is my SqlMap.xml segment: select INVOICE_DATE, EXT_DELIVERY, MATERIAL, B

RE: 2.3.4.726 and XmlConverter

2008-10-16 Thread Zsolt Koppany
Kai , we tried to upgrade from 2.3.0.677 to 2.3.4.726. http://ibatis.apache.org/javadownloads.cgi http://apache.linux-mirror.org/ibatis/binaries/ibatis.java/ibatis-2.3.4.726. zip We have to pre-process the SQL statements thus this problem is a show-stopper for us. Zsolt > -Original Messag