Question on SQLMaps

2005-09-23 Thread Dave, Rajeev
Hello, The following is the scenario 1. I have a SQLMapConfig.xml which contains 2 sqlmap declarations. E.g. sqlMap resource=Dimension.xml / sqlMap resource=Hierarchy.xml / 2. In each of the SQLMap xml's I have some select declarations sqlMap namespace=DimensionQuery select id=getId

RE: Question on SQLMaps

2005-09-23 Thread Dave, Rajeev
Sorry, I missed mentioning in my last mail that as of now, it gives the following error com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing

AW: Question on SQLMaps

2005-09-23 Thread Farsi, Reza
Hi Tajeev, Names in select, update, etc. have to be seen globaly. That means, if you have e.g. getAll for three objects, you have to either change the names (getAllBooks, getAllCds, getAllFilms), or you have to use namespace. You only need to activate using of namespaces in your configuration

Re: Result map problems...

2005-09-23 Thread Atif Faridi
I just came across the same problem. Another solution is to simply alias the names of the dynamically generated columns. The aliases should not be dynamically generated. So, select id=FetchColumnValue resultClass=java.lang.Long parameterClass=java.lang.String

Re: Question on SQLMaps

2005-09-23 Thread Larry Meadors
The key there is this: There is already a statement named getId in this SqlMap. As others have mentioned, you have to make the names unique, or enable namespaces. I would suggest using namespaces. It makes things much cleaner in terms of organization. Larry On 9/23/05, Dave, Rajeev [EMAIL

Re: ProbeException: Error getting ordinal list from JavaBean

2005-09-23 Thread Prashanth Sukumaran
Hi Team, I had this problem as the Query i wrote waswithin CDATA. When i removed the CDATA it works fine. Why is this a problem? What kind of logic is there in IBatis to convert a String to Integer when it is in CDATA? Thanks Prashanth.Prashanth Sukumaran [EMAIL PROTECTED] wrote: Hi, I am

AW: ProbeException: Error getting ordinal list from JavaBean

2005-09-23 Thread [EMAIL PROTECTED]
Hi Prashanth, any text within ![CDATA[..]] is literal text. An XML parser won't parse any elements the CDATA section might contain. -Ursprüngliche Nachricht-Von: Prashanth Sukumaran [mailto:[EMAIL PROTECTED]Gesendet: Freitag, 23. September 2005 17:56An: