Hi Danilo, thanks for your two questions. I'll answer them below.
Hope this helps... Matthias > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Danilo Luiz Rheinheimer > Sent: Thursday, July 17, 2003 5:24 AM > To: [EMAIL PROTECTED] > Subject: [Andromda-user] How to creare a session bean to > every entity bean ? > > > Hello, > > I have some questions on how user AndroMDA : > > - On my model I have many classes with the "Entity" > stereotype. They represent the persistent classes on my > system. I want to create a session bean to every entity. The > SB must have the CRUD operations. How AndroMDA can do it ? One session bean per entity bean, isn't that too much? How about generating CRUD operations into the session bean facade of the component (package)? This would reduce the number of session beans to one per component. Did you see the UML dependencies marked with the <<EntityRef>> stereotype? They point from the <<Service>> to the <<Entities>>. That way, the session bean could know about all the entities it manages and the correspondig template could generate CRUD operations for each entity, simply by iterating over the <<EntityRef>> dependencies. > - All my Entities have a single field as primary key, this > field is always of type long, and his name is always > Id+entity name (IdProduct). I do not want to type the primary > keys fields on my model. How AndroMDA can help ? To make this work, you have to change the EntityBean.vsl template. Remove the code that searches for an attribute with a <<PrimaryKey>> stereotype and hard-wire your naming convention into the template so that it always generates what you want without an additional attribute in the model. > > -- > Best regards, > Danilo mailto:[EMAIL PROTECTED] > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. WITHOUT REBOOTING! Mix Linux / Windows / > Novell virtual machines at the same time. Free trial click > here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user > ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
