It's in the additional ibatis-sqlmap-1-x.zip in the lib\compatibility directory.ClintonOn 3/13/06, Andrey Rogov <
[EMAIL PROTECTED]> wrote:I have to transform xml files from v1 to v2. It is set in the docs that it can be
performed by ANT task, but I have not found com.ibatis.db.sqlmap.upgrade.Conve
If you use Struts, it supports maps instead of beans, so no need.
If you use DisplayTag, it takes a collection.
So does DataSource in c#, Flash, and jTable.
So ... there is no such thing (giant interface of string constants of
keys) is my case.
It takes the Collection (arraylist of hashmaps) and
Heh heh...not having to modify your "VO" doesn't buy you much when you have
to change your giant interface/class of String constants holding the keys to
your Map.
FWIW, I use Maps frequently to pass data values into my SQLMap statements
(the database I use is significantly different than my
I beg to differ. I think one of the primary goals of OO is to make the
semantics of the object transparent, hence comprehensible, hence
reusable. Your approach completely negates that goal and in fact
obfuscates the code (unless you are the privileged programmer who wrote
it in the first place an
Using Collections for VO makes them *reusable*, which is what OO's only
goal, to make you more productive via reuse.
They are dynamic VO in the sense that one cad add a column in SQL or in
view from version 1.0 of your web app to 2.0, and you can do so w/o any
code changes in the VO. Sorry that
Vic, this recommendation is completely wrong and borderline dangerous.Maps are not dynamic. Maps are strongly typed, strict data structures that are impossible to associate behavior with. There's nothing OO about them -- Period.
To be frank, I'd prefer if you stop spamming Maps as the solution to
I used to think that, and wrote a still up to date book covering OO,
iBatis and beans, etc., free here :
http://wiki.apache.org/struts/StrutsBookhttp://wiki.apache.org/struts/StrutsBook
But since I have seen and used dynamic langs, and trying to bring some
of the benefits to the still strongly
Oh - sorry.
iBATIS does not support nested transactions. In most cases, iBATIS will throw an exception - can't start a new transaction because one is already started. I think the EXTERNAL transaction manager will ignore the double start, but I'm not 100% certain.
Jeff Butler
On 3/14/06, Rash
Try this:
Jeff Butler
On 3/14/06, Chema <[EMAIL PROTECTED]> wrote:
Hello:Sorry if I send this message twiceI'm using iBatis 2.I'm trying to deploy a WAR file into a SUNONE 7 AS instance but retrieve this exception:com.ibatis.common.exception
.NestedRuntimeException: Error
If you want to hear a guaranteed lie, then ask an open source committer the "when" question. :-)
Seriously, I can probably get it finished over the weekend. I have to work for a living until then.
Jeff Butler
On 3/14/06, Paul Carr <[EMAIL PROTECTED]> wrote:
GOOD MAN JEFF !
I can downcast
Hi Jeff,
This code isnt in the DAO at all. It is present in my
business layer. What I want to know is that is there anything
like a nested transaction? If I call start transaction twice
one after the other, is the second call valid? Or will the
first commit transaction commit all the statement
Why not do this in one transaction?
The ABC DAO class should not have any transaction code in it, either should the XYZ DAO. A service level method should do the transaction code:
CreateABC -
Insert ABC
Create XYZ -
Insert X
Insert Y
CreateABC
Insert Z
XYZ Service -
Start T1
Create XYZ
Com
GOOD MAN JEFF !
I can downcast before I call insert easy
enough.
When do you figure this will be available ? (got a project going live early May)
Cheers
Paul.
-Original
Message-
From: Jeff Butler
[mailto:[EMAIL PROTECTED]]
Sent: 14 March 2006 16:32
To: user-java@ib
Overloaded setter methods is a violation of the JavaBeans specification. I recommend you don't do it. I also recommend you upgrade to JDK 1.5 if possible, which will avoid the need for this entirely.Even if you don't upgrade, overloading for this reason is a bad idea IMHOJava sucks for not ha
I've been without power for a couple of days due to a bad storm, so I've missed some of the debate too. I'm going to sidestep the whole "OOP best practices" talk (sound and fury).
As for Abator, I can make the change to allow you to specify a base class for the domain objects, and a base interfa
Did you recently upgrade your JVM to
1.5?
Chris Mathrusse
[EMAIL PROTECTED]
Sybase, Inc
One Sybase Drive
Dublin, CA 94568
(925) 236-5553
"Anusuri, Vijay M"
<[EMAIL PROTECTED]>
03/14/2006 08:04 AM
Please respond to
user-java@ibatis.apache.org
To
user-java@ibatis.apache.org
cc
Su
Hi,
I have two
overloaded setter methods in DTO: one with Long Wrapper parameter and another
with long primitive. This has been working fine for several
months. But it stopped working recently and complaining that "The error happened while setting a property on the result
object".
Yes.
All you would have to do is write your own custom type handler. It
would do just as Gustavo suggested but you would only have String
properties in your POJO.
Nathan
On Mar 14, 2006, at 8:43 AM, Zsolt wrote:
Thank you Gustavo.
Is it possible to configure ibatis to put the BLOB direc
Thank you Gustavo.
Is it possible to configure ibatis to put the BLOB directly into a string?
Zsolt
>-Original Message-
>From: Gustavo Henrique Sberze Ribas [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 14, 2006 12:11 PM
>To: user-java@ibatis.apache.org
>Subject: RE: How to convert BL
You'll probably need to use a ping query to make sure that the
connection is valid before returning it.
The BasicDataSource class has that code in it.
Larry
On 3/14/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I'm using Ibatis with Spring and everything works ok. The proble
Hello,
iBATIS can fetch the BLOB as a stream of bytes. One way of doing what you
want is to create get/setters using byte[] that store/read to/from a private
String field, ie:
public class MyBean implements Serializable{
private String myString;
public void setStringAsByteArray(byte[] b)
Hi All,
I am not sure if this is a silly/obvious question, however, here goes:
I have a function called CreateABC. This starts a transaction, inserts into
the DB and then commits the transaction and finally stops it.
I have another function which is called CreateXYZ. This function also does
the
Well I’m glad I caused quite a
discussion on OO vs Maps , but I guess you guys are
all in the states, so I’ve got a day’s delay before I get any
responses J.
I read all your mails about maps and arraylists etc, and I don’t think it really applies
to my problem. I have a bunch of XMLObject
Title: Connection reset Oracle error
Hello,
I'm using Ibatis with Spring and everything works ok. The problem I have for the moment is that in our production server when they stop and restarts Oracle for backup proposes then my application loses the connection and is not able anymore to use
Hello:Sorry if I send this message twiceI'm using iBatis 2.I'm trying to deploy a WAR file into a SUNONE 7 AS instance but retrieve this exception:com.ibatis.common.exception.NestedRuntimeException: Error initializing iBatis SQLMap, Cause:
com.ibatis.common.exception.NestedRuntimeException: Error
25 matches
Mail list logo