db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Fray" <florianf...@compuserve.de>
Subject Re: XMLSchema to Torque's relational schema transform
Date Thu, 21 Apr 2005 12:24:12 GMT
Hi Pietro!

Well I think you should take a look at JAXB for creating
Java Beans correlating with your XSL scheme in both directions.
The next step could be annotating the generated classes
and put it into a EJB 3.0 (preview!) capable container.
This should take not more than an hour of work, depending
on the complexity of your scheme and the amount
of generated classes.
The main advantage is a) the generated classes do fit
100% to your XSL scheme of nearly any complexity
b) it can be used bidirectional
c) you can further manipulate and adjust the O/R mapping
to your underlying DB in a fully DBMS-independent way

Not to take you away from Torque but this should match
your aims best in my opinion.

Greetz

Florian Fray
Wuppertal, Germany

----- Original Message ----- 
From: "Pietro Federico" <pietro.federico@pfportal.com>
To: "'Apache Torque Users List'" <torque-user@db.apache.org>
Sent: Thursday, April 21, 2005 11:27 AM
Subject: XMLSchema to Torque's relational schema transform


> Hi,
>
> I need something where I write a new simple XMLSchema and obtain
> automatically tables and javabeans.
> Then, receiving a piece of XML conforming the XMLSchema, have a unique
> way to save XML data to DB, probably using the beans. (I need the beans
> use the data afterwards)
>
> I'm trying to do a thing like the following:
>
> - having (quite simple) XML Schema definitions (that I can control)
> - automatically transform them to Torque XML Database Schemas
> - automatically obtain DB and JavaBeans with torque
>
> Then having a piece of XML conforming to a previously defined XMLSchema,
> create an initialize the corrisponfing JavaBean and use torque
> persistence to save it in DB.
>
> My idea is to use a unique XSL transform to obtaing XML Database schemas
> automatically and then use commons-digester to do the XML to javaBean
> mapping.
>
> If you know, are there any other projects doing something similar out 
> there?
>
> Pietro.-
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message