opulate both the car
> and the wheels at the same time?
>
> I already tried the following (but the wheel object was not populated):
>
>
>
>
>
>
--
View this message in context:
http://old.nabble.com/Nested-POJO-and-resultMap-tag-tp26717930p26
(but the wheel object was not populated):
--
View this message in context:
http://old.nabble.com/Nested-POJO-and-resultMap-tag-tp26717930p26717930.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com
t;
>
> Christian
>
> -Original Message-
> From: DavidCAIT [mailto:dzaze...@cait.org]
> Sent: Wednesday, July 08, 2009 3:15 PM
> To: user-java@ibatis.apache.org
> Subject: IsEmpty inside Iterate Tag
>
>
> Hi,
>
> I am having trouble determining the
-
From: DavidCAIT [mailto:dzaze...@cait.org]
Sent: Wednesday, July 08, 2009 3:15 PM
To: user-java@ibatis.apache.org
Subject: IsEmpty inside Iterate Tag
Hi,
I am having trouble determining the correct syntax to use with the isEmpty tag
when iterating over a list. My program has a large list of ob
Hi,
I am having trouble determining the correct syntax to use with the isEmpty
tag when iterating over a list. My program has a large list of objects with
potentially null fields and I need to customize my insert statements based
on whether or not a particular object has a certain field set to
Well I do have sequences defined for my each table which acts as a
primary key for my table now I want to use this generatedkey as a
foreign key in another table so now if I use my class attribute to have
this sequence id , then how can I get that key in java code , I am
assuming I can do in fo
stion my
friend, why would I just keep writing mails.
-Original Message-
From: Jeff Butler [mailto:jeffgbut...@gmail.com]
Sent: Thursday, February 12, 2009 11:43 PM
To: user-java@ibatis.apache.org
Subject: Re: KeyProperty attribute in Selectkey Tag
Dude...seriously...*try it*.
The i
ying) it that's why I am asking question my friend, why
> would I just keep writing mails.
>
> -Original Message-
> From: Jeff Butler [mailto:jeffgbut...@gmail.com]
> Sent: Thursday, February 12, 2009 11:43 PM
> To: user-java@ibatis.apache.org
> Subject: Re: KeyProper
ibute in Selectkey Tag
Dude...seriously...*try it*.
The insert statement always returns the value of the select key, or
null if there is no select key. In the example above, the return
value is Integer. The keyProperty attribute is there for just this
instance - where you get the new key f
but an object of what type??.
>
>
>
> Looking forward to your response.
>
>
>
> Regards
>
> Rahul Saluja
>
>
>
> From: Burke.Kevin [mailto:kevin.bu...@cic.gc.ca]
> Sent: Thursday, February 12, 2009 11:17 PM
> To: user-ja
ache.org
Subject: RE: KeyProperty attribute in Selectkey Tag
Rahul,
My experience with this tag is you use it to define a query to determine your
primary key, in the absence of, say an IDENTITY column.
You need to specify the keyProperty attribute if you want the following SQL to
be able to utili
Rahul,
My experience with this tag is you use it to define a query to determine
your primary key, in the absence of, say an IDENTITY column.
You need to specify the keyProperty attribute if you want the following
SQL to be able to utilize the result of the query. In the following
example, I
Or...you know, maybe *try it* while you wait. :-)
Larry
On Thu, Feb 12, 2009 at 10:08 AM, Sundar Sankar wrote:
> PPL are volunteering to reply, They arent obliged to u in
> any way. You gotto be patient if u need reply. Please do watch what you say
> please
>
Tag
Hey Rahul,
PPL are volunteering to reply, They arent obliged to u in
any way. You gotto be patient if u need reply. Please do watch what you say
please
-Sundar
On Thu, Feb 12, 2009 at 10:00 AM, Rahul Saluja
mailto:rahul.sal...@vnl.in>> wrote:
Does anybody care to
>
>
>
> Please.
> --
>
> *From:* Rahul Saluja [mailto:rahul.sal...@vnl.in]
> *Sent:* Thursday, February 12, 2009 10:22 PM
>
> *To:* user-java@ibatis.apache.org
> *Subject:* RE: KeyProperty attribute in Selectkey Tag
>
>
&g
Does anybody care to reply.
Please.
From: Rahul Saluja [mailto:rahul.sal...@vnl.in]
Sent: Thursday, February 12, 2009 10:22 PM
To: user-java@ibatis.apache.org
Subject: RE: KeyProperty attribute in Selectkey Tag
Hey Burke,
So does this mean if I simply say
code.
Regards
Rahul Saluja
From: Burke.Kevin [mailto:kevin.bu...@cic.gc.ca]
Sent: Thursday, February 12, 2009 10:20 PM
To: user-java@ibatis.apache.org
Subject: RE: KeyProperty attribute in Selectkey Tag
This the name of the attribute you can use in your INSERT com
: KeyProperty attribute in Selectkey Tag
Importance: High
Hello everybody,
Can anyone tell me in simple words what is the purpose of
Keyproperty attribute in selectkey tag.
Looking forward to your response
And one more thing is this is a optional attribute.
Regards
Rahul Saluja
From: Rahul Saluja [mailto:rahul.sal...@vnl.in]
Sent: Thursday, February 12, 2009 10:13 PM
To: user-java@ibatis.apache.org
Subject: KeyProperty attribute in Selectkey Tag
Importance: High
Hello everybody,
Can anyone tell me in simple words what is the purpose of Keyproperty attribute
in selectkey tag.
Looking forward to your response.
Regards
Rahul Saluja
The information contained in this e-mail is private & confidential and may also
be legally privileged. If you are not
-java@ibatis.apache.org
Subject: Re: possible to use isEqual inside iterate tag?
SELECT
#return_columns[].someProperty#
FROM
$table_name$
Jeff Butler
On Fri, Sep 5, 2008 at 1:04 PM, Kyunam Kim <[EMAIL PROTECTED]> wrote:
>
> Hi
SELECT
#return_columns[].someProperty#
FROM
$table_name$
Jeff Butler
On Fri, Sep 5, 2008 at 1:04 PM, Kyunam Kim <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
>
>
> When iterating a list of my pojos, I'd like to examine a property of each
Hi all,
When iterating a list of my pojos, I'd like to examine a property of
each pojo using like
SELECT
$HOW DO I ACCESS A CURRENT ELEMENT'S PROPERTY HERE?$
FROM
$table_name$
Would this be
essaggio originale-
> Da: Larry Meadors [mailto:[EMAIL PROTECTED]
> Inviato: mercoledì 23 luglio 2008 15.35
> A: user-java@ibatis.apache.org
> Oggetto: Re: url attribute of tag
>
>
> No: URLs are absolute names.
>
> Depending on how you initialize your SqlMapClient, yo
attribute of tag
No: URLs are absolute names.
Depending on how you initialize your SqlMapClient, you might be able
to pass a base bath as a parameter, and have your web app tell it
where the web root is, then build a file:// url from that, but I don't
see any advantage to doing that. Look a
No: URLs are absolute names.
Depending on how you initialize your SqlMapClient, you might be able
to pass a base bath as a parameter, and have your web app tell it
where the web root is, then build a file:// url from that, but I don't
see any advantage to doing that. Look at the SqlMapCientBuilder
Hi,
Actually my iBatis xml config files are under the classpath so, to include
an xml file in the in the main configuration file (that is under
WEB-INF/iBatis folder) I usually write:
(and it works)
I need to move all my files under WEB-INF/iBatis directory of my web
application.
I read iBatis ma
Hello all,
I just wanted to clarify a doubt before I start coding
I have a POJO
Class foo {
String Id1
String Id2
String Id3
}
My query is
Select value1, value2 from temp
Where temp.id1 in (comma separated values)
AND temp.id2 in (comma separated values)
AND temp.id3 in
What version of iBATIS are you using?
Christian
From: Niels Beekman [mailto:[EMAIL PROTECTED]
Sent: Friday, 27 October 2006 05:45To:
user-java@ibatis.apache.orgSubject: RE: how to iterate a property of
array of objects and using isEqual tag to compare an attribute ex:(id) of this
object
Please keep discussions on the list.
From: marc khoury
[mailto:[EMAIL PROTECTED]
Sent: vrijdag 27 oktober 2006 9:22
To:
Subject: Re: how to
iterate a property of array of objects and using isEqual tag to compare an
attribute ex:(id) of this object with a value. ex: "
Subject: CDATA inside or outside
of statement tag
In my statement in xml, if I use tag, does the CDATA
wrap around the whole statement, ie
CDATASTART
CDATAEND
or I use to use separate CDATA sections as in below...
CDATASTART CDATAEND
CDATASTART CDATAEND
utside of statement tag
I tend to not use them at all. The only time I would need them is for
the standard less then or greater then symbols.
Instead I just use the html code to do this. > and <
On 8/23/06, Daniel Pitts <[EMAIL PROTECTED]> wrote:
>
>
> I believe the cda
e or outside of statement tag
In my statement in xml, if I use tag, does the CDATA wrap around
the whole statement, ie
CDATASTART
CDATAEND
or I use to use separate CDATA sections as in below...
CDATASTART CDATAEND
CDATASTART CDATAEND
@ibatis.apache.orgSubject: CDATA inside or
outside of statement tag
In my statement in xml, if I use tag, does the CDATA
wrap around the whole statement,
ieCDATASTART
CDATAENDor I use to use separate
CDATA sections as in below...
CDATASTART CDATAEND CDATASTART
CDATAEND
In my statement in xml, if I use tag, does the CDATA wrap around the whole statement, ieCDATASTART
CDATAEND
or I use to use separate CDATA sections as in below... CDATASTART CDATAEND CDATASTART CDATAEND
I've tested it on my application and
it works. Thanks for the prompt fix.
Paul McCormick
From: Jeff Butler [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 August 2006 4:33 AMTo:
user-java@ibatis.apache.orgSubject: Re: JIRA 225 and discriminator
tag.
Hi Paul,
I have just commit
L PROTECTED]]
Sent: Wednesday, 2 August 2006 12:13 PM
To: user-java@ibatis.apache.orgSubject:
Re: JIRA 225 and discriminator tag.
Thanks Paul. I've just coded a unit test for myself that is failing like you described, so you don't need to provide another one unless you just want t
ok, thanks. I'll leave it
to you then.
From: Jeff Butler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 August 2006 12:13 PMTo:
user-java@ibatis.apache.orgSubject: Re: JIRA 225 and discriminator
tag.
Thanks Paul. I've just coded a unit test for myself that is failing
like you
PROTECTED]> wrote:
No problem, I'll provide the unit test.
From: Jeff Butler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 August 2006 11:09 AM
To: user-java@ibatis.apache.orgSubject: Re: JIRA 225 and discriminator tag.
I'll take a look at this. If you can provide a reproducable
No problem, I'll provide the
unit test.
From: Jeff Butler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 August 2006 11:09 AMTo:
user-java@ibatis.apache.orgSubject: Re: JIRA 225 and discriminator
tag.
I'll take a look at this. If you can provide a reproducable test
case, i
ollowing feature:
http://issues.apache.org/jira/browse/IBATIS-225
I have encountered a problem. The reused result map ignores the discriminator tag. I've attached some code below. The legDiscriminatorTestFails
query fails. The query should return a DisplayTenement object containing
Title: JIRA 225 and discriminator tag.
Hi,
I've downloaded the latest ibatis code from SVN last week as I needed the following feature: http://issues.apache.org/jira/browse/IBATIS-225
I have encountered a problem. The reused result map ignores the discriminator tag. I've att
You are using a really old dtd and you need to upgrade it. Please look at the bottom of the main page at http://ibatis.apache.org/On Jul 11, 2006, at 6:56 AM, chaithanya ibatis wrote:Hi,Can anyone tell me what dtd should i use for using the typeHandler tag in sqlMapConfig.xml filecurrently i
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 -
Hi,Can anyone tell me what dtd should i use for using the typeHandler tag in sqlMapConfig.xml filecurrently i'm using this which is not supporting typeHandler tag PUBLIC "-//iBATIS.com//DTD SQL Map Config
2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd&quo
Hi,Thanks man. It works perfectly.On 5/3/06, Nathan Maves <[EMAIL PROTECTED]> wrote:
This is a common problem. You need to understand how ibatis maps the properties of an object. It uses the java bean specification.
I would try and change your map to look like
insert into Test_Emp
This is a common problem. You need to understand how ibatis maps the properties of an object. It uses the java bean specification.I would try and change your map to look like insert into Test_Emp (NAME, EMPNO) values(#name#,#empNo#)Notice the lower case on the "Name" an
Hi,I'm trying to use iBATIS over weblogic 8.1.I've attached the files.Sorry for sending so many attachments.The output error message is:===
Caused by:com.ibatis.common.beans.ProbeException: There is no READABLE property named 'Name' in class '
Title: Nested iterate tag
Is it possible to nest iterate tags so I can traverse a list of lists?
For example:
<iterate property="A" >
<iterate property="A[].B" >
#A[].B[].field#
iterate>
Done...
Larry Meadors a écrit :
Add a JIRA issue, and we'll get that changed.
I agree with you: That should blow up in a very visible way.
Larry
On 12/1/05, TNO <[EMAIL PROTECTED]> wrote:
Hello
when they are two tags with the same id, the last read is the one !
but may be a
Add a JIRA issue, and we'll get that changed.
I agree with you: That should blow up in a very visible way.
Larry
On 12/1/05, TNO <[EMAIL PROTECTED]> wrote:
> Hello
>
> when they are two tags with the same id, the last read is the one !
> but may be a warning will be usefull to say that id alre
Vincent NICOLAS a écrit :
TNO a écrit :
Hello
when they are two tags with the same id, the last read is the
one !
but may be a warning will be usefull to say that id already exists...
;-)
Some editors as XML Buddy (plugin for Eclipse) warn you in such a
case. However, it would be more i
TNO a écrit :
Hello
when they are two tags with the same id, the last read is the one !
but may be a warning will be usefull to say that id already exists...
;-)
Some editors as XML Buddy (plugin for Eclipse) warn you in such a case.
However, it would be more interesting to be warn at compi
Hello
when they are two tags with the same id, the last read is the one !
but may be a warning will be usefull to say that id already exists...
;-)
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 tag conjunction property support dy
HI:
Does it right the sqlMap like
under?
$searchValueList[].column$$searchValueList[].operator$#searchValueList[].value#
The information i
Hello and thanks in advice
I'm using ibatis java 2.1.5.
I've found in the mail-archive a link to a map example that use
discriminator tag inside a resulMap
The file is named Documents.xml
I've tried to build an example over this map, but i'm getting errors
during the bu
Just to correct a possible misunderstanding - iBATIS does not detect the dependancy on your delete. MySQL is doing it through a cascaded delete.
iBATIS is really just sending SQL to the database through JDBC - there's very little magic going on here.
iBATIS knows very little about your table s
Hi
Albert,
thanks a lot for the
answer. Indeed it was the reason of the problem. I added the following selectKey
to my mapping file and it works:
INSERT INTO instrument (internalNumber) VALUES
(#internalNumber#)
SELECT
last_insert_id()
I'm now facing
Reza,
I don't know if this is what is causing the problem, but I think there
might be a problem with your table definition for the option table.
instrument_id is supposed to reference the id in the instrument table,
but you have it set up as a auto_increment field. I would think
that you would
Title: multiple insert within a select tag
Hi all,
following scenario:
I'va an object Instrument. It references an another object option.
create table instrument (
id int not null auto_increment primary key,
internalNumber varchar(12) not null unique
);
c
Hello,
I've send this email a week ago, but unfortunatelly nobody has answered. I
hope it's because of mail list problems, because I think these are serious
problems:
I've just switched to datamapper 2.1.5, hoping that i can use list directly
as parameter (and not some confugisng listholder with li
ing this topic UP cause IMHO I've found some more arguments
> why iBatis users may need to have multiple statements executed in one
> statement tag.
>
> 1. Sometimes we have some fields (simplest example = default values,
> or some calculated values) set at the database side, so a
Hi,
I'm bringing this topic UP cause IMHO I've found some more arguments
why iBatis users may need to have multiple statements executed in one
statement tag.
1. Sometimes we have some fields (simplest example = default values,
or some calculated values) set at the database side, s
I understand that :) But in this case you would be combining
something like em_num with dept_num. In this case you would have to
place dummy columns with either a null of 0 as a place holder. I
still think that my join is way cleaner and more performant.
Nathan
On Aug 4, 2005, at 12:42
On Wed, Aug 03, 2005 at 04:20:57PM -0600, Nathan Maves wrote:
> I think a union is only a good solution when the data from both
> queries can be combined into one column.
Not really, the columns should be ordered to have the same types
in the order, so there is an ability to query for several
On Wed, Aug 03, 2005 at 09:25:24PM -, sreenivas wrote:
> Hi,
>
> I would like to know whether or not below approach is possible with iBATIS.
>
> "com.abc.Output"> select emp_name as eName, emp_sal as eSal from emp where
> emp_id = #emp_id# and loc_code=#loc_code#
> select dept_no as eDeptNo
I think a union is only a good solution when the data from both queries can be combined into one column. I think a simple join between the two table should solve your problem.does this not work? select A.emp_name as eName, A.emp_sal as eSal, B.dept_no as eDeptNo from emp A, dept B where A.emp_id =
Not that I am aware ofwhy not just use a union?
Larry
On 3 Aug 2005 21:25:24 -, sreenivas <[EMAIL PROTECTED]> wrote:
Hi,
I would like to know whether or not below approach is possible with iBATIS.
select emp_name as eName, emp_sal as eSal from emp where emp_id = #emp_id# and loc_code=#
Hi,
I would like to know whether or not below approach is possible with iBATIS.
select emp_name as eName, emp_sal as eSal from emp where emp_id = #emp_id# and loc_code=#loc_code#
select dept_no as eDeptNo from dept where emp_id = #emp_id# and loc_code=#loc_code#
As in the above code, both qu
s <[EMAIL PROTECTED]> wrote:
> > Hi,
> > can anyone point me to some documentation or an example mapping for
> > the tag?
> >
> >
> > regards
> > richard
> >
>
>
--
Mostly harmless.
Here's an example mapping found in SVN:
http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/Documents.xml
On 8/1/05, rich oates <[EMAIL PROTECTED]> wrote:
Hi,can anyone point me to some documentation or an example mapping forthe tag?regardsrichard
Hi,
can anyone point me to some documentation or an example mapping for
the tag?
regards
richard
73 matches
Mail list logo