To do this, double-click on the attribute to bring up the specification for id. We will make the id attribute a primary key.To help map this to Entity Services, we'll add a few stereotypes to our model. When done close the Specification dialog. For hobbies the multiplicity should be 0.*. This allows you to continue adding attributes.Ĭreate the firstName, lastName, and hobbies attributes the same way you created id. Your ID attribute dialog should look like this: To create the id attribute, click Create. Let's add four attributes: id, firstName, lastName, hobbies. Name it Person.ĭouble-click on the Person class to open its specification. In the diagram, drag a class onto the canvas. In the Containment panel, right-click on Model and select New Diagram.įrom the Create Diagram popup select Class Diagram.Ī new diagram is created with the default name Model. You now see the MarkLogic Entity Services Profile in the containment panel. You should see that MagicDraw recognizes the MarkLogic Entity Services Profile. Your Use Model dialog should now look like this:Ĭlick Next. From that clone, choose the file uml2es/umlProfile/magicdraw/MLProfile.xml. You should have a local clone of this toolkit. Under "Project File", click on the button with three dots to find the profile in your filesystem. In the Use Project dialog, under "Select Project To Use", select "From File System". Then from the File menu, select Use Model - Local Model. In the Containment panel on the left, select "Model". To use your new model with MarkLogic, you need to add the UML-to-Entity Service profile. In the left panel, select the type as "UML Project" under General-Purpose Modeling.Ĭlick OK to create the model. In the New Project dialog box enter a name and a project location (i.e., path on your computer to keep the model). Close any existing projects: File | Close All Projects How to create the model: Create a new project I tested this on MagicDraw Enterprise 18.5 SP2. ![]() This tutorial shows how to create a UML model for MarkLogic in MagicDraw. How To Build a Model in MagicDraw for MarkLogic Intro
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |