You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Hariharan, Vadivelu (IE10)" <Ha...@honeywell.com> on 2006/10/09 05:51:27 UTC
schema prefix in abator generated files
Hi
I'm running on Spring 2.0 and sqlmap 2.2.0 build# 638
Here is a sample mapping file generated by abator, Spring throws me an error
saying that I have duplicate "abatorgenerated_Example_Where_Clause" elements
abatorgenerated_Example_Where_Clause elements in my mapping files, when I
investigated further I realized that
If I prefix each if the "id" elments with the namespace type, the problem is
fixed
For instance for the below mentioned mapping file , I need to prefix each of
the id elements with "RMA_CC_TYPE"
Can't abator generated the id elements with the namespace prefix, or is
there any setting I'm missing in my properties file
<sqlMap namespace="RMA_CC_TYPE">
<resultMap class="com.honeywell.aes.beta1.rma.CCType"
id="abatorgenerated_CCTypeResult">
<!--
WARNING - This element is automatically generated by Abator for
iBATIS, do not modify.
This element was generated on Mon Oct 09 09:01:36 GMT+05:30 2006.
-->
<result column="TYPE_CD" jdbcType="VARCHAR" property="typeCd"/>
<result column="DESCRIPTION" jdbcType="VARCHAR" property="description"/>
</resultMap>
<sql id="abatorgenerated_Example_Where_Clause">
.....
......
<select id="abatorgenerated_selectByExample"
.....
.......
</sqlMap>
Thx.
-Hari
RE: schema prefix in abator generated files
Posted by "Hariharan, Vadivelu (IE10)" <Ha...@honeywell.com>.
Yep, it worked! Thx.
-----Original Message-----
From: Graeme J Sweeney [mailto:ibatis.user@gjsweeney.com]
Sent: Monday, October 09, 2006 6:14 PM
To: user-java@ibatis.apache.org
Subject: RE: schema prefix in abator generated files
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote:
> I don't see anything called
> useStatementNamespaces="true" element in the DTD.
>
> Could you be more specific
See your sqlMapConfig, http://ibatis.apache.org/dtd/sql-map-config-2.dtd.
--
Graeme -
RE: schema prefix in abator generated files
Posted by Graeme J Sweeney <ib...@gjsweeney.com>.
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote:
> I don't see anything called
> useStatementNamespaces="true" element in the DTD.
>
> Could you be more specific
See your sqlMapConfig, http://ibatis.apache.org/dtd/sql-map-config-2.dtd.
--
Graeme -
RE: schema prefix in abator generated files
Posted by "Hariharan, Vadivelu (IE10)" <Ha...@honeywell.com>.
I don't see anything called
useStatementNamespaces="true" element in the DTD.
Could you be more specific
-----Original Message-----
From: Graeme J Sweeney [mailto:ibatis.user@gjsweeney.com]
Sent: Monday, October 09, 2006 4:30 PM
To: user-java@ibatis.apache.org
Subject: Re: schema prefix in abator generated files
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote:
> If I prefix each if the "id" elments with the namespace type, the problem
is
> fixed
<snip/>
> Can't abator generated the id elements with the namespace prefix, or is
> there any setting I'm missing in my properties file
Are namespaces enabled in your config?
<settings useStatementNamespaces="true"/>
--
Graeme -
Re: schema prefix in abator generated files
Posted by Graeme J Sweeney <ib...@gjsweeney.com>.
On Mon, 9 Oct 2006, Hariharan, Vadivelu (IE10) wrote:
> If I prefix each if the "id" elments with the namespace type, the problem is
> fixed
<snip/>
> Can't abator generated the id elements with the namespace prefix, or is
> there any setting I'm missing in my properties file
Are namespaces enabled in your config?
<settings useStatementNamespaces="true"/>
--
Graeme -