Skip to main content

Application Design Diagramming Techniques-Part-I

This and few other subsequent posts will explore the diagrams used in designing the application in developing the Logical model for application.

This post explores the ORM(Object Role Modelling)

 Object Role Modeling (ORM):

An ORM diagram includes the primary objects (also called entities) in the system, the relationships between those objects, and the attributes (and even attribute values) that define those objects. ORM notation is used to create this logical representation between objects.

 ORM Objects

In ORM diagrams, each object is represented by an oval containing the name of that object.

Simple rule to identify ORM objects: Any nouns in the requirements or use case is an ORM object

ORM Relationship

An ORM relationship defines how two or more objects are related to one another. In an ORM, a relationship between objects is represented as a line connecting the objects. Along this line will be a rectangle divided into segments based on the number of objects in the relationship. This is typically two segments because most often, you are modeling relationships between two objects (called a binary relationship). However, if you are modeling a relationship that exists among three objects (called a ternary relationship); all three relationships need to be defined


Project and developer has a binary relationship. A developer can be assigned to a Project.

Ternary relationship exists between Release, manager and developer. A release consists of efforts from developer(s) and manager.

 ORM Facts

A fact indicates how two (or more) items are related. This is also called the fact model for the application. They represent how objects really relate to one another.



The Facts depicted in figure can be read as;

A project has developer and in reverse Developer is in Project

For Ternary relation Developer and Project manager makes a release and reversely a Release has a manager and developer(s).

Similarly, a Manager has Employee details and Employee Details is of manager.

An employee detail has a Name, EmployeeID and Designation and Designation, EmployeeID and Name is of Employee details (that is a manager).

ORM Constraints

ORM constraints define how the objects participate in the relationship. This includes defining which objects are mandatory and the multiplicity of the relationship. Mandatory objects in a relationship are indicated by a closed (or filled) circle attached to either end of the connection. This closed circle indicates that the given object is mandatory in the relationship. That is, the related object does not exist without this object.

Multiplicity indicates whether two objects relate to one another as one-to-one, one-to-many, or many-to-many. Multiplicity is indicated with a series of arrows over the relationship shape.

In the Above figures, the objects are mandatory; however No Color has been used for Filling.

The Figure below depicts the Multiplicity notation(s).

 Try to put these constraints in the Figure-1 or Figure-2 to get the complete picture of ORM diagram. This has been left intentionally as a practice to the reader.

 Note: ORM diagrams, as a myth are thought to be used in Database diagramming only, however it serves as an excellent tool for initial designing phase(s).

The next few post will cover the other diagramming techniques that include component diagram, class diagram, activity diagram, Sequence diagram, collaboration diagrams.

Hope this article was helpful….

Till Next we connect…….

Happy Learning.



Try to put these constraints in the Figure-1 or Figure-2 to get the complete picture of ORM diagram. This has been left intentionally as a practice to the reader.

Note: ORM diagrams, as a myth are thought to be used in Database diagramming only, however it serves as an excellent tool for initial designing phase(s).

The next few post will cover the other diagramming techniques that include component diagram, class diagram, activity diagram, Sequence diagram, collaboration diagrams.

Hope this article was helpful….

Till Next we connect…….

Happy Learning.

Comments

Popular posts from this blog

Asp.Net 4.0: An Overview-Part-III

This is the last post in the series which will explore the following new features of ASP.Net 4.0  Performance Monitoring for Individual Applications in a Single Worker Process Web.config File Refactoring Permanently Redirecting a Page Expanding the Range of Allowable URLs Performance Monitoring for Individual Applications in a Single Worker Process It is a common practice to host multiple ASP.NET applications in a single worker process, In order to increase the number of Web sites that can be hosted on a single server. This practice results in difficulties for server administrators to identify an individual application that is experiencing problems. ASP.NET 4 introduces new resource-monitoring functionality introduced by the CLR. To enable this functionality, following XML configuration snippet is added to the aspnet.config configuration file.(This file is located in the directory where the .NET Framework is installed ) <?xml version="1.0" encoding="UTF-8...

Covariance and Contravariance-General Discussion

If you have just started the exploration of .Net Framework 4.0, two terms namely Covariance and Contravariance might have been heard. The concept that these terms encapsulate are used by most developer almost daily, however there has never been any botheration about the terminologies. Now, what actually these terms mean and how are these going to affect us as a developer, if we dive in to the details. The simple answer is it’s always good to know your tools before actually using them. Enough philosophy, let’s get to the business. Starting the discussion let me reiterate that in addition to Covariance and Contravariance, there is another terminology, Invariance. I’ll by start here by diving into the details of Invariance and then proceed further. Invariance: Invariance can be better understood by considering the types in .Net.>net has basically two type, value-types and reference-types. Value types (int, double etc) are invariant i.e. the types can’t be interchanged either ...

Advanced WCF

In this post, I am sharing the link of articles about  advanced topics in WCF. The List of articles is exhaustive and can serve as your repository for all WCF queries. Concurrency,Throttling & Callbacks  WCF Concurrency (Single, Multiple and Re entrant) and Throttling   WCF-Interop and BinarySecurityToken  WCF Callbacks  Creating Web Services From WSDL Link1 Link2 Link3 Link4 WCF-Security WCF over HTTPS   Transport Security(basic)/HTTPS UserNamePasswordValidator ServerCertificateValidationCallback 9 simple steps to enable X.509 certificates on WCF - CodeProject http://www.codeproject.com/KB/WCF/9StepsWCF.aspx?display=Print Message Security(Certificate)/PeerTrust Securing WCF Services with Certificates. - CodeProject http://www.codeproject.com/KB/WCF/wcf_certificates.aspx Message Security(Certificate)/ChainTrust How To Configure WCF Security Using Only X.509 Certificates - CodePr...