To answer my own questions, the <settings useStatementNamespaces="true"/> works and I now reference all statements with the namespace. Thanks for the help!
Thanks. Carson Reinke [EMAIL PROTECTED] P: 248.333.7700 x108 -----Original Message----- From: Carson Reinke Sent: Friday, May 27, 2005 1:43 PM To: 'ibatis-user-java@incubator.apache.org'; 'Daniel Henrique Ferreira e Silva' Subject: RE: Namespace Problem So I have to declare this in my sqlmap-config: <settings useStatementNamespaces="true"/> This forces me to use namespaces whenever I reference a statement, right? I declared a namespace like this: <sqlMap namespace="SomeNamespace">, are there any special rules with the naming? Thanks. Carson Reinke [EMAIL PROTECTED] P: 248.333.7700 x108 -----Original Message----- From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] Sent: Friday, May 27, 2005 1:35 PM To: ibatis-user-java@incubator.apache.org Subject: Re: Namespace Problem Hi Carson, Did you enable namespaces in your sql-map-config? Did you declare a valid namespace for your maps file? Cheers, Daniel Silva. On 5/27/05, Carson Reinke <[EMAIL PROTECTED]> wrote: > Hi- > > Not sure if this is the right mail list, but having a little trouble > using the namespace in the SQL map. I have something like this in a > resultMap: > > <result property="someProperty" column="DB_COLUMN" > select="SomeNamespace.statementId"/> > > I receive this error when trying to query: > > --- The error occurred in iBATIS/sqlmap-XXX.xml. > --- The error occurred while applying a result map. > --- Check the XXX.XXX. > --- Check the result mapping for the 'someProperty' property. > --- Cause: com.ibatis.sqlmap.client.SqlMapException: There is no > statement named SomeNamespace.statementId in this SqlMap.]; SQL was [] > for task [SqlMapClient operation] > > Any ideas? I the SQL maps doc said that was allowed. > > Thanks. > > Carson Reinke > [EMAIL PROTECTED] > P: 248.333.7700 x108 >