Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:15:12 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

November 2004
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Oct   Dec

Get Firefox!

Wednesday, November 10, 2004

A customer asked me:

I've done a UML diagram of my business domain classes. How can I generate business components from this? When I click on the Generate menu in the right mouse, everything is greyed out.

Here is problem is one of terminology. The user is thinking "generate", and indeed we have a Generate menu item, so he understandably goes for that menu. What he's looking for is actually under the Transform menu pick in that same right-mouse menu. I'm not sure what the semantic subtlety between Transforming and Generating is, so I'll probably file a bug to have this clarified, but in the meantime, here's how to do what he wants to do:

  1. Select the UML classes and associations in the UML diagram that you want to transform.

    You could do that with a lasso-select of everything in a rectangle, or [Ctrl]-clicking a number of elements separately.
  2. Pick the Transform option on the right-mouse menu, and decide whether you want to transform the selected UML element into a:
    1. Model Only

      which will just create the target classes/components
    2. Same Diagram

      which creates the target classes/components and adds them to the
      same diagram
    3. New Diagram

      which created the target classes/components and adds them to a new diagram.
  3. At that point, a dialog appears asking you to confirm whether you want to transform the selected UML elements into Java classes, or ADF business components. Confirm your choice, and away it goes! 

11:56:54 AM    



After reading my OTN article on What is the ADF View Object Range Paging Feature? A reader wrote in to ask why wouldn't want to always use this feature.

I've updated the article to add some indications on what the trade offs of using this feature are, so that you can more easily decide in your applications when it applies and when it doesn't.


11:15:27 AM    


© Copyright 2008 Steve Muench.