Hi Sebastien,

I had detected the bug because this is only done in hibernate mappings, and not on java code and I will fix it tonight. It will be accesible within hours.


Carlos

Sebastien Arbogast wrote:

Hi,

I'm still trying to specify integrity constraints in my model. So I
created a very simple model to test things out of all the constraints
of the real model I'm working on :
1- I created a sample application with andromdapp:generate
2- I edited the generated XMI file into MagicDraw
3- I created 2 classes Test1 and Test2, stereotyped as entities and
linked by a one-to-many association from Test1 to Test2 : Test1 is
associated with 0 or more Test2's, while each instance of Test2 is
associated with 1 and only one Test1.
4- I made sure that both ends of this association were public
5- I added a tagged value [EMAIL PROTECTED] on
Test2's end of the association to specify that an instance of Test2
should be unique in every Test1 container.

So I would expect java generated code to look like this :

public class Test1{
   ...
   private java.util.Set test2s;
   public java.util.Set getTest2s(){return test2s;}
   public void setTest2s(java.util.Set test2s){this.test2s = test2s;}
   ...
}

But when I run "maven mda" in my project directory, I still have
Collection's generated instead of Set's.
Semantically it appears that andromda.hibernate.collection.type only
concerns hibernate generation and maybe my constraint is taken into
account in Test1.hbm.xml (I'm not interested in this part for now).
But what I'm looking for, is a mean to specify that at Java code
generation level, to use the semantic value of different kinds of
collection in order to treat some constraints at business level
instead of data persistence level.

How could I do that ? Do I have to post some JIRA request for another
tagged value (andromda.java.collection.type ?) ?


Thx in advance.
Best regards.





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to