Hi Ingo, first of all, I have to understand what's the problem. Why don't you simply model the facade as a <<Service>> and the entities as <<Entity>>? Put the business methods of the facade into the <<Service>> class and let them call internal business methods on the <<Entity>> classes. You call the entity business methods from the implementation code of the facade business methods, that's all. Forget about business interfaces on the <<Entity>> classes because they are not visible outside your component. Think about business interfaces of your facade classes. These can be generated automatically, you need not model them at all.
All this works today. So, my intuition tells me that you want to do more. But what? :-) Cheers... Matthias > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Ingo Bruell > Sent: Wednesday, January 28, 2004 10:18 PM > To: [EMAIL PROTECTED] > Subject: [Andromda-user] SessionFacades > > > Hi, > > i am not sure if i am on the right track. I want to write a > script that generates a SessionFacade. But i am struggeling > arround how to Model it in UML. I have several ideas: > > 1. Creating a class FooFacade and defining the busines > methods to access the methods from different beans and > setting a stereotype <<facade>>. But how i could determine > which busines methods belongs to which Entity bean ? > > 2. Creating interfaces for each entity beans that deklares > the busines method and associate them with corresponding > entity bean. These interfaces should have the stereotype > <<busines>>. Creating a class FooFacade with stereotype > <<facade>> that implements theses interfaces. I think the > problem would be the same. > > 3. Generate a facade class for each entity bean without > explicit modeling automaticly. IMHO that is the worst. > > Any suggestions ? > > -- > best regards > > Ingo Bruell > > -- > <[EMAIL PROTECTED]> > <ICQ# 40377720> > Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C > 8FE7 C648 169E E5FC > Germany PGP-Public-Key available at pgpkeys.mit.edu > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
