Training Course Domain Modeling. 2 What is the Domain model? An abstract data model A reflection of reality No ERD, closer to entity-oriented models Consists.

Slides:



Advertisements
Similar presentations
Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Benchmark Series Microsoft Excel 2013 Level 2
Tutorial 6 Creating a Web Form
MXIE overview 5/4/ Update1. MXIE Media Exchange Interface for End Users 5/4/ Update2.
ENTITY RELATIONSHIP MODELLING
1 Chapter Overview Understanding NTFS Permissions Assigning NTFS Permissions Assigning Special Permissions.
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Tables. Any database must contain one or more tables, because that’s where the data is stored. For any table there are two views provided: Datasheet view.
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
Chapter 3 Maintaining a Database
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Modify Tables and Fields
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Telerik Software Academy ASP.NET Web Forms Data Validation, Data Validators, Validation Groups Telerik Software Academy
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Address Refer to Slide 2 for instructions on how to view the full-screen slideshow.Slide 2.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
TxEIS Security A role-based solution October 2010.
CHƯƠNG 3 Finding, Filtering, and Formatting Data.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
WEEK 10 Database Design. Agenda – Week 10 Review Hybrid Review Table Instance Charts Primary Keys Normalization.
Office Management Tools II Ms Saima Gul.  When you create your tables, you should assign each table a primary key—one or more fields whose contents are.
Using Client-Side Scripts to Enhance Web Applications 1.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
1 Chapter 12: Form Builder Objects and Flexible Code.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Database collection of related information stored in an organized form Database program software tool for storage & retrieval of that information.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Vijayalakshmi G M Validation Controls.
Web Page-Chapter 6 Forms. Inserting a Form  Display the Insert bar  Click the arrow to the right of the display category on the Insert bar and then.
Go to Start >> Programs >> Outlook Express ( as shown)
WESS Safety Authority WESS Module SA-2 SA Functions Modify Existing User Accounts.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Extracting Information from an Excel List The purpose of creating a database, or list in Excel, is to be able to manipulate the data elements in ways that.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
FHA Training Module 1 This document reflects current policy related to this topic. Its content is approved for use in all external and internal FHA-related.
Tutorial 6 Creating a Web Form
MS-EXCEL PART 3. Use data validation in Excel to make sure that users enter certain values into a cell. Data Validation Example In this example, we restrict.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Creating a database table
Databases Chapter 9 Asfia Rahman.
Visit for more Learning Resources
Class diagram Description
ER MODEL Lecture 3.
Databases and Structured Files: What is a database?
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
ITEC 3220A Using and Designing Database Systems
Microsoft Access Validation Rules, Table Relationships And
Database Design Week 12.
Presentation transcript:

Training Course Domain Modeling

2 What is the Domain model? An abstract data model A reflection of reality No ERD, closer to entity-oriented models Consists of entities, attributes and associations

3 What is an entity? Something that exists in real life “Blueprint for Mendix entities” Examples: Car House Client Order Product message

4 How to add an entity? Click on the “Entity” button Click on the desired location Set the name of the entity in the “Properties” window

5 What is an attribute? “Provides information about an Entity” Client ← Name, Address, City Car ← Brand, Type Order ← OrderNumber, OrderDate

6 Attribute types AutoNumber(Automatically incrementing number) Binary Boolean(True or False) Currency DateTime Enumeration(Collection of predefined values) Float(Floating-point number: 1.12) HashString Integer(Small number) Long(Big number) String(Text)

7 How to add attributes to an entity? Double click on an entity Go the ‘Attributes’ tab page Click on the “Add” button Enter the “Name” Select “Type”

8 What are associations? “Indicates the relationship between entities” Car – Owner Order – Client Product – Product group Book - Author

9 Association types Basic – Reference Advanced – Reference Set – 1-1 Reference (Reference BOTH) – MN Reference (Reference Set BOTH)

10 What is a reference? With a reference you can refer from one entity to another entity In the given example the customer refers to country The ‘1 to 0’ reference is the most common kind of association Similar to ERD 1 – n relations Customer refers to 1 Country Country can be referenced by multiple customers The reference is stored in the Customer The cardinality can be read as follows:  Customer refers to 1 country  Country refers to 0 customers

11 Reference in XML The reference is stored in the owner of the association which is indicated by the arrow (‘Order’ in the given example) KLM id_201 Holland

12 How to add a reference? Click on the “Add association” button Click on the border of the meta entity (starting at the owner) Keep the mouse button pressed Drag the association to the border of the other entity

13 What is a reference set? With a reference set one entity refers to multiple other entities In the example the Customer refers to many Groups Similar to ERD ‘N – M relations’ Customer refers to N groups Group can be referenced by multiple customers The relation is recorded in the customer The cardinality can be read as follows:  Customer refers to N groups  Group refers to 0 Customers

14 Reference set in XML General Motors id_201 id_202 VIP Christmas cards The reference is stored in the owner of the association which is indicated by the arrow (Customer in the given example)

15 How to add a reference set? Add an association Click on the association Set the property “Type” to “ReferenceSet”

16 What is a reference both? This indicates that two entities always belong together Could also be modeled as one large entity In the example the customer refers to a profile and profile to customer Similar to ERD ‘1 – 1 relations’ Customer refers to 1 profile Profile then always refers to the same Customer The relation is stored in both Customer and Profile The cardinality can be read as follows:  Customer refers to 1 Profile  Profile refers to 1 Customer

17 Reference both in XML General Motors id_201 Profile_General Motors id_101 The reference is stored in the owner of the association which is indicated by the arrow (both Customer and Profile in the example)

18 How to add a reference both? Add an association Click on the association Set the property “Owner” to “Both”

19 What is a reference set both? With a reference set both, both entities refer to multiple other entities In the given example, the Customer refers to many Groups and vice versa Similar to ERD ‘N – M relations’ Hardly ever used Customer has maximum of N groups and vice versa Group can belong to multiple customers and vice versa The relation is stored in both Customer and Group The cardinality can be read as follows:  Customer refers to N groups  Group refers to N Customers

If one entity is deleted, an associated entity is deleted as well This is commonly used by – Reference both associations – When one entity in reality is modeled as two entities, for example: Order & OrderLine Can be defined on both the parent or the child of the association In the given example, the Profile will be deleted when the Customer is deleted 20 What is cascading delete?

Select the association Click the... Button in the “Delete behavior” in the explorer Select the desired delete behavior (2nd radio button) 21 How do I configure cascading delete?

This prevents an entity from being deleted if it is referenced by other entities This prevents the existence of orphans or invalid references in the database A message to the end user can be specified for each association Always specify a message when blocking a delete In the given example, a Country can’t be deleted if it is referenced by a Customer 22 What is delete prevention?

Select the association Click the... Button in the “Delete behavior” in the explorer Select the desired delete behavior and enter a message for the end user 23 How do I configure delete prevention?

24 Combining cascading delete & delete prevention Question: What happens if a continent is deleted that contains countries with customers? Countries can only be deleted if they are not referenced by any customer If a continent is deleted all countries are deleted as well

Before an entity is committed all validations rules are checked Validation rules apply to attributes If one rule is violated then the commit action will be cancelled For each rule you can specify an error message All messages are returned to the caller If the caller is the client portal, the messages will be shown in the data view Validation rules are visualized in the model (green check next to attribute) 25 What are validation rules?

There are different kinds of validation rules: – Required The attribute is required to have a value – UniqueThe values of this attribute is unique across all instances of an entity – EqualsThe value equals a predefined value or other attribute – RangeThe value lies between two other values (other attributes or fixed values) – Regular expressionThe value conforms to a regular expression – Maximum lengthThere is a maximum length for the attribute 26 What are validation rules?

Double click on the entity Open tab page “Validation rules” Click the “Add” button 27 How to configure validation rules?

Select the attribute Define an error message, that is shown when the rule is violated Select the type of validation rule Set the necessary values Click OK 28 How to configure validation rules?

A term ‘borrowed’ from Entity-Oriented programming A subentity inherits from a superentity. The subentity inherits all attributes including validation rules and associations of the superentity. The superentity is extended, also called specialization In the example both Customer and Employee are specializations from User 29 What is Generalization?

Customer has the attributes: – Address – Name – Password Employee has the attributes: – Function – Name – Password 30 What is Generalization?

Select the entity in the Domain model Click on the … button of the property “Generalization” Select the superentity in the explorer popup Click Select 31 How do I configure inheritance?

When entities have a number of common attributes (keeps the model clear) When entities can be generalized as a super entity When you want to use functionality from another module (e.g. the System model) When two entities need to be displayed in one list (only shows the common attributes) 32 When to use Generalization?

Performance reduction through complex joins on database Challenging when used in combination with complex business logic and validation rules It becomes difficult to oversee implications of changes to the domain model when a lot of generalization is used 33 Generalization Drawbacks