Ciao all.
I'm quite new to androMDA and MDA in general.
After playing around a little I think it is great stuff and started using it
in a new experimental project in order to decide for its adoption in my own process.
I'm currently using Poseidon CE to draw the UML
and andrMDa to generate the Hibernate-related files. I have some questions.

1. Are PK different from String supported? Can I generate integer or long
PK? Shouldn't be they more performing than String PK w/ almost all database engines?

2. Can I get androMDA aware of the fact that I'd like to use native PK generators?

3. When modelling associations, Hibernate docs strongly suggest to set the attributes
"inverse" to "true" on the one side of many-to-one associations in order to
lower (by about 30%) the number of SQL commands to be issued when establishing/managing
the association among two specific entities. AndroMDA-generated mappings set "inverse"
to "false".

4. Another hint coming from Hibernate docs is to set the attribute "cascade" to 
"save-update"
(at least; other options could be "all", "all-delete-orphans") instead of "none".
This saves the developer to explicitly save the dependent entity when setting up a
relation between two entities (e.g. need only to save the father in a parent-childs 
relationship).
AndroMDA-generated mappings set "cascade" to "none".

5. Hibernate mapping support a lot of attributes for e.g. the class or many-to-may 
elements
of the mapping documents (not null, ...). Is there any way to set them in the UML and
then getting them in the output?

After reading the posts in this newsgroup it seems to me that this could be achieved 
editing the templates used to generate the code and hbm files. Apart from the fact
that this a brand new topic for me, I think that the (clever and more experienced than 
me, definitely)
people who wrote the current template set designed it with some precise rationale in 
mind
and referring to some best-practices or experiences. So they _chose_ to set
the inverse attribute to false and so on. So, would you please explain those rationales
and best practices in order to enable people like me to use this tool to its best?

Thanks a lot, and many thanks to all the people who's providing us such a great 
instrumentation!

davide



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to