Do this in Java code. Doing it in xml is kinda silly. :)
Larry
On Wed, Jan 20, 2010 at 12:00 AM, masonka...@libero.it
wrote:
> Hi,
>
> I have a write a update statement with condition on every set element.
> If
> no condition are matched set part are empty, but where part is
Hi,
I have a write a update statement with condition on every set element.
If
no condition are matched set part are empty, but where part is already created
and this cause a sql error (ex.: update where id=4).
I show an example about
it:
update iord
i have a problem with the collection element, i cant get it to populate
ArraList properties on my POJO.
i can instantiate the pojo using the constructor element but the collection
element did not work. the
mapper configuration xml is below, and folowing it is my POJO
select a.name as
hout in any way it is impossible.
>
> Alexander
> --
> View this message in context:
> http://www.nabble.com/iBATOR-does-not-generate-without-optional-an-element-%3CdaoGenerator%3E-tp25057307p25057835.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
context:
http://www.nabble.com/iBATOR-does-not-generate-without-optional-an-element-%3CdaoGenerator%3E-tp25057307p25057835.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
-
To unsubsc
Hi Alexander
2009/8/20 bhaa
>
> Hi,
>
> In element, child element is optional.
> Why if to do Generate iBATIS Artifacts without this element, there is an
> exception:
>
[snip]
When this child element is present in element
> , generation is successful.
>
>
Hi,
In element, child element is optional.
Why if to do Generate iBATIS Artifacts without this element, there is an
exception:
Reason:
Unexpected error while running iBator.
java.lang.NullPointerExeption
Here a file ibatorConfig.xml:
http://ibatis.apache.org/dtd/ibator-config_1_0.dtd
've been a happy ibatis, abator, ibator user for a little while now, but
>> there is one feature missing that I think would make my life a lot
>> easier...and possibly others. Is there a way to generate all tables for
>> a
>> schema w/out specifying element in ibator conf
't used it in a while. I can
> use iBator in my current project, but only if there is a way to use the
> generatedKey element (a sub-element of Table) to invoke a stored procedure
> that takes as input the tablename and the number of unique keys desired
> (that would be always 1),
Hi everybody. I'm a big iBator fan but haven't used it in a while. I can
use iBator in my current project, but only if there is a way to use the
generatedKey element (a sub-element of Table) to invoke a stored procedure that
takes as input the tablename and the number of unique ke
a lot
> easier...and possibly others. Is there a way to generate all tables for a
> schema w/out specifying element in ibator config.xml?
>
> My current workflow when doing DDL changes is as follows:
> 1. use GUI datamodeling tool to define / modify columns etc.
> 2. actually c
Hi,
I've been a happy ibatis, abator, ibator user for a little while now, but
there is one feature missing that I think would make my life a lot
easier...and possibly others. Is there a way to generate all tables for a
schema w/out specifying element in ibator config.xml?
My current wor
td/sql-map-2.dtd";>
>
>
> If any solution on that will appreciate.
> I gone threw so many places in google but it seems no one has solutions.
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/%22resultMap%22-must-be-declared-for-element-type-%22parameter%22.-tp21204286p21204286.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
hi,all.
i have some other questions.
i need to get the sql witch had executed to develop a log manager system.for
ibatis,is there anyway to get it?
3ks!
laces in google but it seems no one has solutions.
Thanks
--
View this message in context:
http://www.nabble.com/%22resultMap%22-must-be-declared-for-element-type-%22parameter%22.-tp21204286p21204286.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
laces in google but it seems no one has solutions.
Thanks
--
View this message in context:
http://www.nabble.com/%22resultMap%22-must-be-declared-for-element-type-%22parameter%22.-tp21204262p21204262.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
roblem. Are you interested at running this program when complete?
Where should I send it?
thx.
Date: Fri, 7 Nov 2008 14:36:18 +0200
From: [EMAIL PROTECTED]
To: user-java@ibatis.apache.org
Subject: Re: result element order matters?
I don't really know how you manage to get an IntegrityConst
I don't really know how you manage to get an IntegrityConstraintsException
when performing selects. Updates and inserts, on the other hand, are
sensitive to parameter placement.
You might be referring to the exception being thrown on update when you feed
newly received object (using the faulty sele
This took several days to figure out and is not intuitive. We assume it is a
bug.
We have a resultMap that has about 40 mappings. When we added a new column to
the result map, we started getting an error where a "select *" would not
include another unrelated column in the result set. To fix t
lass file to the abator.jar file in
> ./eclipse/plugins/org.apache.ibatis.abator.core_1.1.0.
>
> When I change the plugin.xml file in
> ./eclipse/plugins/org.apache.ibatis.abator.core_1.1.0 to include an
> additional element to refer to my class file, I ge
se/plugins/org.apache.ibatis.abator.core_1.1.0.
When I change the plugin.xml file in
./eclipse/plugins/org.apache.ibatis.abator.core_1.1.0 to include an additional
element to refer to my class file, I get the following run-time error
(in the Eclipse PDE Runtime Error Log).
java.lang.RuntimeException: Cannot instantiate
Anyone know of any way to use an element in result map as "groupBy"
criteria. For example,
Thanks!
user-java@ibatis.apache.org
Subject: Attribute "type" must be declared for element type "selectKey".
Hi to All
i am getting this error
Attribute "type" must be declared for element type "selectKey".
my sqlMap .xml code is
SELECT
Hi to All
i am getting this error
Attribute "type" must be declared for element type "selectKey".
my sqlMap .xml code is
SELECT ADMINTEST.NEXTVAL AS bookid FROM DUAL
insert into IBATISADMINTEST (BOOKID,BOOKNAME , AUTHORNAME ,
AVAILABLEBOOKS,PUBLISHER,CATEG
I have fixed the problem by not specifying jdbcType in the
configuration. Why is this necessary? The type is CLOB.
On Tue, 2008-04-22 at 11:38 -0400, Kenny Pearce wrote:
> Hi,
> I've been trying to configure TypeHandlerCallback implementations using
> the element in for so
Hi,
I've been trying to configure TypeHandlerCallback implementations using
the element in for some time, and I have
never been able to get it to work. I have usually worked around it by
specifying the type handler for the individual parameter or result, but
I've come across a
Thanks Axel, that seems to have corrected that issue at least !
Subject: AW: Ibatis xml problem - Document root element "sqlmapconfig", must
match DOCTYPE root "sqlMap".Date: Fri, 1 Feb 2008 16:28:33 +0100From: [EMAIL
PROTECTED]: user-java@ibatis.apache.org
I'm in
I'm in a hurry, so I only had a quick look at your xml-file and found this to
be in error.
Keep in mind that xml-files are case sensitive so you must use names like
sqlMapConfig,transactionManager,dataSource, sqlMap,...
At least with this changes iBATIS parses the xml file correctly.
/
: Document root element "sqlmapconfig", must match
DOCTYPE root "sqlMap".
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandl
'/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There
>> is
>> no READABLE property named 'id' in class 'com.mytest.MyTest'
>>
>> why does it keep trying to load id from the parameter class while
>> ignoring
>> the
d 'id' in class 'com.mytest.MyTest'
>
> why does it keep trying to load id from the parameter class while ignoring
> the selectKey ??
> --
> View this message in context:
> http://www.nabble.com/Can%27t-get-this-selectKey-element-working-tf4846284.html#a13865417
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
hile ignoring
the selectKey ??
--
View this message in context:
http://www.nabble.com/Can%27t-get-this-selectKey-element-working-tf4846284.html#a13865417
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
Hi there!
In page 15 in the documentation:
The Element
The sqlMap element is used to explicitly include an SQL Map or another SQL Map
Configuration file.
What does the last part mean ?
I try to do load one "sub" config file from the "master" config file, is
Problem solved.
When
you copy text from Acrobat Reader into a file inside the Eclipse-IDE, the text
is treated as Unicode!
Thanks for your help.
/Axel
eter to match my environment, copied the
Person.xml from the tutorial, created the person table in the database and then tried to start a simple query as in the tutorial.But iBatis throws a "org.xml.sax.SAXParseException: Document root element is missing" at startup time..
Does anybody know w
y
as in the tutorial.
But iBatis throws a "org.xml.sax.SAXParseException: Document root element is
missing" at startup time..
Does anybody know what's going wrong here? My environment is JDK 1.4.2_07.
Here are both xml-Files.
SqlMapConfig.xml:
http://www.ib
Not sure what the subclass element does...never tried it. But ... you can probably use discriminator tag. It's dosclosed as undocumented on the wiki :-)
Cheers,ClintonOn 8/30/06, Jan Vissers <[EMAIL PROTECTED]> wrote:
I
I'm reading JIRA for ResultObjectFactory and came across this:
Factories are not the way to solve inheritance as described (yet
another contradiction in this request --first a complaint, and then
an intended use). We're going to support the
element, as in the .NET vers
Wow.. I didn't notice that. Sorry.. And thanx ^^
Regards,
Hendry
-Original Message-
From: Ron Grabowski
parameterClass
ing XPath '/sqlMapConfig/sqlMap'. Cause:
> com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:
> org.xml.sax.SAXParseException: Attribute "paramaterClass" is not
> declared
> for element "insert".
> Caused by: org.xml.sax.SAXParseExceptio
ion: Error parsing XML. Cause:
org.xml.sax.SAXParseException: Attribute "paramaterClass" is not declared
for element "insert".
Caused by: org.xml.sax.SAXParseException: Attribute "paramaterClass" is not
declared for element "insert".
Could somebody help me with
lem is as follows
> though.
>
> In the EmployeeSQL.xml mapping, I am seeing elements like this:
>
> and
>
>
> But as I am using the DevGuide.pdf from the IBatis site download, they refer
> to the elements like so:
>
>
>
>
>
>
>
>
> Basically th
refer to
the elements like so:
Basically the DevGuide.pdf uses a different element naming than the example I
am working with. Does anyone know the difference? The DTDs look the same?
The delete needs a close node.
Quoting David Moss <[EMAIL PROTECTED]>:
> I'm getting this exception when trying to start my web app in Tomcat5.
>
> my sql-map-config.xml file contains:
>
>
> 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd";>
>
>
>
>
:26
To: user-java@ibatis.apache.org
Subject: org.xml.sax.SAXParseException: Attribute "id" is required and
must be specified for element type "delete".
I'm getting this exception when trying to start my web app in Tomcat5.
my sql-map-config.xml file contains:
Sorry, I've found it. Hadn't closed a tag correctly. What a stupid
mistake, and I'd spent ages looking for it too.
David Moss wrote:
I'm getting this exception when trying to start my web app in Tomcat5.
my sql-map-config.xml file contains:
http://www.ibatis.com/dtd/sql-map-config-2
I'm getting this exception when trying to start my web app in Tomcat5.
my sql-map-config.xml file contains:
http://www.ibatis.com/dtd/sql-map-config-2.dtd";>
and Map.xml contains...
http://www.ibatis.com/dtd/sql-map-2.dtd";>
By creating a composite class, or using a Map.
public class Foo{
private YourClassA yourClassA;
private YourClassB yourClassB;
// getters and setters below...
}
Larry
On 9/1/05, Mathew Samuel <[EMAIL PROTECTED]> wrote:
>
> Is it possible to pass a 2nd custom/standard class
> through a qu
Is it possible to pass a 2nd custom/standard class
through a queryForObject() or queryForList() ? Or do I
have to combine both objects under a Collection before
sending it in ? I would want to use certain properties
from the 2nd class to aid the 1st in a join, like
shown below:
...
49 matches
Mail list logo