Ok, let's say you need a list of items to display on a page. You will model an "ItemService" with a method "getItems()" returning a collection of items (or better, a collection of value objects). In your controller, you will call this method and put the result in the "form". If you draw a dependency from your controller to your service, you will have an accessor in the controller to get an instance of the service. The code is really simple (I didnt believe it the first time I saw it ;) ). So in the controller :
form.setItems(this.getItemService().getItems()); Now in the service, you do the real job of getting the data (which is hardly more difficult). If you draw a dependency from your service to your entity, again you have an accessor to data access objects (DAO). So let's say you have a dependency from "ItemService" to "Item", the code of the getItems() method is : return this.getItemDao().findAll(); Last thing, where did the "findAll()" method come from ? Well, it's a finder method you modeled on the entity "Item". Take a look at the different classes generated by AndroMDA to see all the other functionnalities you can access. If you use a good editor, the auto-completion feature is a great way to learn what can be used. Ok, that was a very general answer. If you have more questions, just ask. But if you want a more specific answer, please provide a more specific question ... Good luck with AndroMDA _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1177#1177 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user