You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by "Owens, Ryan" <ro...@uhd.com> on 2003/03/26 18:38:56 UTC
UML/XMI/JMI and Torque
I've been using torque for a while and love it.
What drove me to torque in the first place was the idea of having all of a system's objects/models defined in XML and then generated for me. This process is extremely helpful to me in visualizing a system's model. So the logical next step is to have a tool to do this visually. (And then print out model charts/schemas and all kinds of cool stuff)
As a study, I'm using Poseidon UML to draw up UML versions of some example systems (like Bookstore). Poseidon (based on ArgoUML) saves out to an XMI file (XML Metadata Interchange). Basically all the same information exists in the XMI and Torque project-schema.xml files, but obviously in very different ways.
So the questions is, does anyone know about an effort to load an XMI file into torque?
So far I haven't found anything and am looking into a way to do this. Wouldn't it be cool to model your schema in Poseidon (or any other tool that uses XMI, I believe Rational does) and then be able to use it with Torque!
This could be done in a number of ways, but my current bias would be to use the Jave Metadata Interface (JMI).
My research is only just beginning but it seems that JMI can load XMI.. and I could then feasibly generate a torque project-schema.xml file from there.
And one step further.. does anyone know what Torque's metamodel is based on? I know what the project-schema.xml file looks like of course, but I've no idea what torque does with that internally.
So I guess the question is, does/could Torque make use of JMI internally to represent its metamodel, and possibly leverage any future JMI tools?
Ok, sorry to subject you all to my brainstorms. Does this kind of thing belong on the dev list instead?
Thanks!
Ryan Owens
Re: UML/XMI/JMI and Torque
Posted by Jean-Marc Lavoie <je...@videotron.ca>.
Together templates (.tpl) allow you create reports based on their model.
When using plain text, you can generate XML if you like. This is the way
they generate ant build file, this is a twisted way of generating XML,
but that's an opinion. The ant build file template is a good start.
There is a lot of consideration to take care of, like placing the box
at the good place to prevent balnk line insertion or taking care of
sorting to have the keys in the same order in the table than in the
foreign key when you have multiple keys forming a PK. Always fun to have
generated code calling other generated code methods with the parameters
in the wrong order, better yet when they are the same type and that the
code compile. That's close to a week effort if you want to learn the
report tool and the Together SCI object model and make the template. I
don't got the template anymore. It may be a last resort solution.
I would recommend the XLT transformation proposed by Guillaume, or the
tool from the devaki nextobjects project.
Stephan Wiesner wrote:
> Hi Jean-Marc,
>
> Jean-Marc Lavoie wrote:
>
>>
>> Also, Together have some reporting facility that can be twisted to
>> generated the Torque XML schema.
>
>
> Can you elaborate on that point? What do you mean by 'Twisted'?
>
> Stephan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>
>
Re: UML/XMI/JMI and Torque
Posted by Stephan Wiesner <st...@stephan-wiesner.de>.
Hi Jean-Marc,
Jean-Marc Lavoie wrote:
>
> Also, Together have some reporting facility that can be twisted to
> generated the Torque XML schema.
Can you elaborate on that point? What do you mean by 'Twisted'?
Stephan
Re: UML/XMI/JMI and Torque
Posted by Jean-Marc Lavoie <je...@videotron.ca>.
I don't know if ti is exactly what you are looking for, but some month
ago a guy talked about a gui that allow you to draw your scheme and
generate DB based on Torque. I don't know if it read XMI, but it's a
nice UI. The link is the following:
http://www.devaki.org/
I did not tried the tool so if you try it, let me know.
Also, Together have some reporting facility that can be twisted to
generated the Torque XML schema.
Owens, Ryan wrote:
>I've been using torque for a while and love it.
>What drove me to torque in the first place was the idea of having all of a system's objects/models defined in XML and then generated for me. This process is extremely helpful to me in visualizing a system's model. So the logical next step is to have a tool to do this visually. (And then print out model charts/schemas and all kinds of cool stuff)
>
>As a study, I'm using Poseidon UML to draw up UML versions of some example systems (like Bookstore). Poseidon (based on ArgoUML) saves out to an XMI file (XML Metadata Interchange). Basically all the same information exists in the XMI and Torque project-schema.xml files, but obviously in very different ways.
>
>So the questions is, does anyone know about an effort to load an XMI file into torque?
>So far I haven't found anything and am looking into a way to do this. Wouldn't it be cool to model your schema in Poseidon (or any other tool that uses XMI, I believe Rational does) and then be able to use it with Torque!
>
>This could be done in a number of ways, but my current bias would be to use the Jave Metadata Interface (JMI).
>
>My research is only just beginning but it seems that JMI can load XMI.. and I could then feasibly generate a torque project-schema.xml file from there.
>
>And one step further.. does anyone know what Torque's metamodel is based on? I know what the project-schema.xml file looks like of course, but I've no idea what torque does with that internally.
>So I guess the question is, does/could Torque make use of JMI internally to represent its metamodel, and possibly leverage any future JMI tools?
>
>Ok, sorry to subject you all to my brainstorms. Does this kind of thing belong on the dev list instead?
>
>Thanks!
>
> Ryan Owens
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>For additional commands, e-mail: torque-user-help@db.apache.org
>
>