Hi all,
        I have following question.
I have a database table with two columns.
I want to use Castor JDO and Castor XML to java mapping at the same time
by extracting data from db using Castor JDO and by publishing it to the
web using Castor XML 2 java.
I have used the two frameworks separately before, by generating java
sources with SourceGenerator for xml 2 java only.. and by writing a
mapping file in cases where I wanted to use castor jdo only.

Now, I had a look at the samples that comes with Castor, and I have
seen, in castor jdo, following mapping.xml

<class name="myapp.ProductGroup" identity="id" access="shared"
auto-complete="false" verify-constructable="true">
  <description>Product group</description> 
  <map-to table="prod_group" xml="group" /> 
- <field name="id" type="integer" required="false" direct="false"
lazy="false" transient="false">
  <sql name="id" type="integer" read-only="false" dirty="check"
transient="false" /> 
  <bind-xml node="attribute" reference="false" transient="false" /> 
  </field>
- <field name="name" type="string" required="false" direct="false"
lazy="false" transient="false">
  <sql name="name" type="char" dirty="check" read-only="false"
transient="false" /> 
  <bind-xml node="text" reference="false" transient="false" /> 
  </field>
  </class>


So, I guess that from following mapping file (from jdo samples) I can
also
Get the xml 'string' format..

So above mapping file is more than enough if I want to retrieve Java
objects and then get the XML representation on the web, right?

Thanx in advance for your responses
Regards
        Marco

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to