I've looked at using the OJB-XDoclet project to do the same type of thing, but it seems to have some bugs as well. Plus, I prefer to do my modeling from the DB, and just extend those base classes.

As far as working with 1:n / n:m, I think that we're going to extend the Torque DTD/schema and add a new possible data type "VECTOR". Then using the Velocity templates build specialized sections when using this data type. We've already added some base functionality through the Velocity templates, but haven't tried this yet.

Let me know if this approach sounds good to you...


On Wednesday, June 11, 2003, at 02:00 AM, Danilo Tommasina wrote:


Hi Marcus,

yes, I'm doing the same, however I still not tested the 1:n / n:m reletionships,
I did some modifications of the ojb velocity templates to fix some 'bugs' and to obtain a nice formatting an extra features automatically put in my model.
I actually don't know if the Torque DTD is supporting 1:n / n:m relationships (still a newbie and still didn't looked at it), maybe you have to modify the velocity templates for a complete code generation


let me know if you find out something about the torque DTD
bye
Danilo

I'm sorry if this has been covered before, a quick search yielded
nothing, so I thought I'd just ask...

Is anyone out there using the build scripts included with torque to
build the repository.xml file(s) and possibly associated classes?

I'm currently using them (somewhat modified) to build my object model
classes and the repository, but I'm having some problems with getting
it to build relationships (1:n, m:n, etc...). I'm considering altering
the Torque DTD to allow for explicit back-links (inverse
relationships), but want to know if anyone else has already done this
or is working on something similar.


Does anyone have any thoughts / suggestions?

-=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-=-
Marcus Breese                            [EMAIL PROTECTED]
IU School of Medicine              [EMAIL PROTECTED]
Dept. of Biochemistry and Molecular Biology
Center for Medical Genomics / Grow Lab


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-=-
Marcus Breese                            [EMAIL PROTECTED]
IU School of Medicine              [EMAIL PROTECTED]
Dept. of Biochemistry and Molecular Biology
Center for Medical Genomics / Grow Lab



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to