ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lamey <cla...@localmatters.com>
Subject Re: converting complex object to xml data file
Date Sat, 24 Mar 2007 06:32:45 GMT
In your first mail about this you listed Parent and Child objects as
example objects that you're mapping in iBATIS.  If you use xstream,
which just writes Java to XML, you don't need to write another set of
objects, you can use the same ones you use in iBATIS.  The example
Meindert used just aliased your Parent and Child objects to short names
rather than fully qualified.

xstream is very simple and fast, there's no need to write more code for

On Fri, 2007-03-23 at 16:34 -0700, Utkarsh Ahuja wrote:
> Thanks for your response Meindert. I am trying to stay away from a
> external Java Object to XML as I would need to have the backing bean
> to create the mapping. If I could just use the tables directly from
> the database and convert them over to XML, I eliminate the need to
> have the backing beans and the result that I get back is directly in
> XML. 
> I am using Jasper Reports which can use an XML datasource. Currently I
> use the beancollection data source but I would like to keep the report
> implementation completely separate from the application beans as such.
> That way the reports could just run independently. 
> I would like to use the ibatis functionality to create dynamic sql
> which is just beautiful without having to map the columns to a backing
> Java Bean.
> Thanks
> Utkarsh

View raw message