db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ravi" <ravi_ku...@persistent.co.in>
Subject RE: How can I write the data into xml file
Date Sun, 27 Nov 2005 11:31:05 GMT
Thanks For help.
I used following function
Platform.fetch(Database model, String sql, Table[] queryHints)

Now its working.
Thanks a lot for help .I was trying for this for a long time.

-----Original Message-----
From: Thomas Dudziak [mailto:tomdzk@gmail.com] 
Sent: Sunday, November 27, 2005 4:45 PM
To: ddlutils-dev@db.apache.org
Subject: Re: How can I write the data into xml file

On 11/27/05, ravi <ravi_kumar@persistent.co.in> wrote:

> I am not able to write the data into xml file.
>
> I am using DataWriter class for that.Code is as follows.
>
> DataWriter dw = new DataWriter(os );
> List list = platform.fetch(db,"SELECT * FROM DEPT");
> dw.write(list);
>
> I am getting error as
>
> Nov 27, 2005 4:27:48 PM org.apache.ddlutils.io.DataWriter write
> WARNING: Cannot write normal dyna beans (type: result)

Some JDBC drivers do not return enough metadata to identify the
tables/columns returned, and thus DdlUtils cannot associate them to
the model elements.
Please use the fetch variant with table hints, and supply the table
object for DEPT.

Tom


Mime
View raw message