Re: Problem substituting inline parameter value in alter table statement

2009-08-25 Thread Nathan Maves
you need to use the string substitution option. $value$ nathan On Tue, Aug 25, 2009 at 4:15 PM, Evan McQuinn wrote: > Hello - > > I'm trying to run an alter table command to swap partitions in a large > Oracle table. I haven't found any documentation regarding alter table in > iBatis specifical

Re: Problem substituting inline parameter value in alter table statement

2009-08-25 Thread Evan McQuinn
Answered my own question: I just discovered that I'd missed the subtle syntax difference between dynamically provided parameters and actual chunks of sql; I need to use $value$ instead of #value#. Sorry 'bout that. - Evan Evan McQuinn wrote: Hello - I'm trying to run an alter table comma

Problem substituting inline parameter value in alter table statement

2009-08-25 Thread Evan McQuinn
Hello - I'm trying to run an alter table command to swap partitions in a large Oracle table. I haven't found any documentation regarding alter table in iBatis specifically, so I'm using the update mapping. Seems straightforward enough, but for some reason my inline #value# parameter is not be

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-15 Thread Jeff Butler
Clinton is right, I tried this with many different varieties of generic interface and it worked for me every time. So we need your test case that reproduces the problem. Jeff Butler On Thu, May 15, 2008 at 4:52 PM, Clinton Begin <[EMAIL PROTECTED]> wrote: > Generics should work fine. I have

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-15 Thread Clinton Begin
Generics should work fine. I haven't read this whole thread about the inheritance yet, but generics such as this should work without problems, as long as PK is a simple type, *OR*, you create a custom type handler for whatever you're using for the PK. public interface BaseDomain { publ

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-15 Thread Jeff Butler
As to why, it is because there is a large install base of iBATIS users and we have committed that the iBATIS 2.x releases will run with JDK 1.4. As for the future, look here: http://opensource.atlassian.com/confluence/oss/display/IBATIS/iBATIS+3.0+Whiteboard Jeff Butler On Thu, May 15, 2008 at

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-15 Thread Thiago F. G. Albuquerque
But... why? Is this a design decision? Are there any plans to support generics in the future? Thiago Jeff Butler wrote: Ahhh...this is far beyond the introspection capability of iBATIS. iBATIS is built for JDK 1.4 and will not understand these types of getters. Jeff Butler On Thu, May 15,

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-15 Thread Jeff Butler
PM, Thiago F. G. Albuquerque >><[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: >> >> Hi, >> >> When I have a inherited getter in the domain

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-15 Thread Thiago F. G. Albuquerque
Hi, When I have a inherited getter in the domain object and the corresponding attribute appears in an inline parameter map, I get a NullPointerException: Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-14 Thread Jeff Butler
gt;>When I have a inherited getter in the domain object and the >>corresponding attribute appears in an inline parameter map, I get a >>NullPointerException: >> >>Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: >> --- The

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-14 Thread Thiago F. G. Albuquerque
a inherited getter in the domain object and the corresponding attribute appears in an inline parameter map, I get a NullPointerException: Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in Evento.abator.sqlmap.xml. --- The error oc

Re: Inherited getter and inline parameter map => NullPointerException

2008-05-14 Thread Jeff Butler
tribute appears in an inline parameter map, I get a NullPointerException: > > Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The > error occurred in Evento.abator.sqlmap.xml. --- The error occurred while > applying a parameter map. --- Check the > Evento.a

Inherited getter and inline parameter map => NullPointerException

2008-05-14 Thread Thiago F. G. Albuquerque
Hi, When I have a inherited getter in the domain object and the corresponding attribute appears in an inline parameter map, I get a NullPointerException: Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in Evento.abator.sqlmap.xml. --- The error

Inline parameter map - default values

2007-02-12 Thread Amit Kushwaha
Hi, How do you specify default values for inline parameter maps - For example, in the following insert snippet that maps a Product domain to a PRODUCT table, the 3 values (id, description and price) for PRODUCT come from attribute's of the Product domain class, insert into PRODUCT v

Re: Inline Parameter Mapping - Update Statement

2007-01-23 Thread jaybytez
://www.nabble.com/Inline-Parameter-Mapping---Update-Statement-tf3078944.html#a8554716 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

Inline Parameter Mapping - Update Statement

2007-01-23 Thread jaybytez
The documentation shows these advanced properties for inline parameter mapping: #propertyName,javaType=?,jdbcType=?,mode=?,nullValue=?,handler=?,numericScale=?# That is fine for syntax like an insert statement, but for an update statementwhere we need to say columnName = value...how do I do

Re: Inline parameter

2005-07-05 Thread Clinton Begin
I'm actually with Leon on this oneI prefer inlining as much as possible, even if it means defining additional properties inside the inline parameter. If we are to ever fully support a full featured Java/C# config API (i.e. no XML), this might become more important...not only for param

Re: Inline parameter

2005-07-05 Thread Larry Meadors
flexibility and readability doing so? Larry On 7/5/05, Leon van Tegelen <[EMAIL PROTECTED]> wrote: > Hi > > Is it possible to specify the MODE of a parameter (IN/OUT/INOUT) in an > inline parameter ? Curently I'm using a parameter map as input for a > stored procedure

Inline parameter

2005-07-05 Thread Leon van Tegelen
Hi Is it possible to specify the MODE of a parameter (IN/OUT/INOUT) in an inline parameter ? Curently I'm using a parameter map as input for a stored procedure call, but I'd rather us a parameterClass. Thanks in advance Leon van Tegelen -- Leon van Tegelen Cumquat Information